Agreed, nice nit. :) You can pick at the file line by line or if using YAML as Richard mentioned, as a document by document separated in yml by dashes.
-c On 2/8/07, Chris McMahon <[EMAIL PROTECTED]> wrote:
I'll pick one nit here: > lineArray = IO.readlines( myFile.path ) > lineArray.each{ |line| For a very large myFile, you could have a problem holding lineArray in memory. A better choice might be myFile.path.each_line do |line| <process line> end _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general