From: Mark Toth Date: 2007-12-29T03:49:38+09:00 Subject: How to jump over the first line in a file? (newbie) I have this code: file = "filename.txt" File.open(file) do |sFile| while line = sFile.gets row = line.split("\t") a_product = Product.new( :sku => row[0] , :name => row[1] , :price => row[2] , a_product.save end end What if I want to jump over the first line of the file so it won卒t be imported? Thank you, Mark -- Posted via http://www.ruby-forum.com/.