From: Gareth Clews Date: 2006-06-19T05:15:48+09:00 Subject: Re: Ruby in the sky with diamonds Daniel Schierbeck wrote: > Gareth Clews wrote: >> 1. Say I have 5 files which just contains arrays, hashes or a mixture >> of both and I want to let somebody choose one of them [...] >> then I want ruby/irb to output the hashes/arrays contained in the >> files, like the cat or less commands with bash, how do I go about this?! > > Do you mean you're storing data in ruby arrays and hashes? You might > want to take a look at YAML[1]. Are the file names static, and is there > a fixed amount of files? Yeah, there are a fixed number of files with static file names and essentially each file is just a text file with the text being arrays and hashes. Cheers for the help guys (especially YAML and where to look for the help) I nearly got put off by the guy who didn't leave his name... -- Posted via http://www.ruby-forum.com/.