From: why the lucky stiff Date: 2003-06-06T07:15:25+09:00 Subject: Re: Syck / Yaml example On Thursday 05 June 2003 03:57 pm, Shashank Date wrote: > > I use Andy's one-click installer for Windows and was > wondering if I got the correct version of Syck/Yaml. > Is there a way to verify? > The installer is a week or so behind of CVS. You'll have to wait for an update or find someone who has compiled the latest Ruby source on Windows. > > but had to modify it slightly: > > s = File.open( 'syck-0.35.yml' ).readlines.join > p yp.load(s) > Yeah, that example should actually be: s = YAML::load( File::open( 'syck-0.35.yml' ) ) (or) s = YAML::load( File::open( 'syck-0.35.yml' ).read ) You can stream from a file or from a string. See YAML.rb docs at http://yaml4r.sf.net/doc/. Good luck. _why