From: Mark Wilson Date: 2002-12-06T01:42:04+09:00 Subject: Re: Best way to read data? I have read that a good way is using ARGF. ARGF.each do |line| # do something end with the program run as you wrote it: my_app.rb > > What's the best Ruby idiom for reading data from a data file one line > at a time > so that I could run the program with something like: > my_app.rb < data.txt > > > Thanks very much! > > > Christopher J. Meisenzahl CPS, CSTE > Senior Software Testing Consultant > Spherion > christopher.j.meisenzahl@citicorp.com > > > >