On Sun, Apr 4, 2010 at 7:58 PM, Hawksury Gear <blackhawk_932 / hotmail.com> wrote: >> Even better >> >> require 'pathname' >> dir = Pathname "K:/test" >> >> dir.each_entry do |file| >> ¨Âæéì宿éìå¿ >> ¨Âéìå®åáãèßìéîäï üìéîåü >> .. >> ¨Âîä >> ¨Âîä >> end >> >> Cheers >> robert > > Many Thanks Robert, I did the following, > > require 'pathname' > ¨ÂéòÐáôèîáíå ¢Ëº¯ôåóô> dir.each_entry do |file| > ¨Âæéì宿éìå¿ > file.each {|line| print line} ## Checking if it can access a line in a > file > ¨Âîä > ¨Âîä > > It isn't giving any error message which is great but also not Displaying > any Output. > Probably i am not using file.each{|line| print line} correctly. Try: file.foreachline {|line| print line} It seems Pathname objects don't have an each method... Jesus.