From: Roger Pack Date: 2010-03-30T05:42:42+09:00 Subject: Re: Ruby cannot find the file in the directory - Error Enoent Sask Khan wrote: > All, > > Just started Ruby and using Notepad++ for writing code but for some > reason, upon execution of the *.rb file, the command prompt give me the > attached error (please see the image attached). > > The file is just a text file called 'text.txt', which is sitting in the > same folder as the ruby script file. Im confused... You'll need to run "ruby" from the same directory where 'text.txt' is located. -rp -- Posted via http://www.ruby-forum.com/.