How do I read an input file and print it back to STDOUT
exactly as the original file. This should be very simple
but the output of my program is all garbled.
What am I doing wrong?
( I am using http://www.rubycentral.com/book to learn Ruby)
The program, input, and runtime output are below.
================= snip ==============
$ cat ./test56.rb
inputFile = File.readlines(“input4”, ‘r’)
for item in inputFile
print item, “\n”
$ cat input4