From: Ray Baxter Date: 2009-07-26T02:27:18+09:00 Subject: Re: Is an exception (Error) raised while using YAML.load_file() --000e0cd1b63e2bc803046f8b08e9 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Errno::ENOENT is a system error, which means "No such file or directory." These values are Constants defined in Errno, so you can see the possible values via Errno.constansts. With that piece of information, the error that you get means that in yaml.rb, on line 143, you were trying to open the file "file2.yaml" which did not exist, probably because it is not in the current working directory, but maybe because you didn't ever create it, or because you named it "FILE2.YAML" and you have a case-sensitive file system. Ray On Sat, Jul 25, 2009 at 12:19 AM, Venkat Akkineni < venkatram.akkineni@gmail.com> wrote: > Actually let me improve my question. This is the erro I get > > C:/Ruby/lib/ruby/1.8/yaml.rb:143:in `initialize': No such file or > directory - file2.yaml (Errno::ENOENT) > from C:/Ruby/lib/ruby/1.8/yaml.rb:143:in `open' > from C:/Ruby/lib/ruby/1.8/yaml.rb:143:in `load_file' > from yaml_prac.rb:3 > > doesn't make any sense. > > Thanks > Venkat > -- > Posted via http://www.ruby-forum.com/. > > --000e0cd1b63e2bc803046f8b08e9--