M
Mark Toth
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] ,
rice => 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
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] ,
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