From: "Jesús Gabriel y Galán" Date: 2012-06-23T01:37:58+09:00 Subject: Re: Reading only certain rows of data from a text file On Fri, Jun 22, 2012 at 5:46 PM, Jason Peterson wrote: > I will give it a try and play with it if necessary. Will I still need to > call the ('Path/file') first with the File.open function? No, if you use File.foreach you don't need to use File.open method, File.foreach opens the file and yields line by line to the block. http://ruby-doc.org/core-1.9.3/IO.html#method-c-foreach Jesus.