From: Jon Handler Date: 2007-12-08T04:18:54+09:00 Subject: Question about iterators and reading a file Hi All, I'm trying to write a loop to read in a file with the following structure: ... ... And I have this piece of loop: f = open(File, 'r').each do |l| strIn = l.chomp # Now what!?!! end I need to advance to the next line of the file within the loop but I can't for the life of me figure out how to do that. This can't be hard, but it's defeated me so far! TIA Jon -- Posted via http://www.ruby-forum.com/.