The directory change worked! Thank you both for your help. One question 
though, when I try to load a text file from a program in ruby it says

undefined method `each' for "text.txt":String (NoMethodError).


My code looks like this:

File.open ("text.txt").each {|line| puts line}


Both the text.txt and the program loading it are in the same directory.

Any suggestions?

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