Nick Shaw wrote:
> Hi, Ive just started learning Ruby and I'm having a problem with the
> following program. I'm running it on Ubuntu.
> 
> lines = File.readlines("/home/nick/ruby/analyzer/oliver.txt")

(...)
f = "/home/nick/ruby/analyzer/oliver.txt"
lines = File.new(f).readlines
#the rest of your code is fine.

The "f" thing is there  because of this forum's line-width.

Regards,

Siep



-- 
Posted via http://www.ruby-forum.com/.