From: "Eric D." Date: 2013-06-19T06:27:17+09:00 Subject: Re: trying to load a .rb file in irb 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/.