From: Tanushree Bhoi Date: 2006-12-07T14:58:55+09:00 Subject: #help in reading from csv file ------=_Part_45200_17045927.1165471133121 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Hi Friends, Here I am trying to read from a cvs file my code is like this require 'nebo' # my ruby library where the function create_product is defined product=CSV.open('createproduct.csv','r') #reading data from csv file loginnebo=CSV.open('login.csv','r') #file to get the creadential to login to the application login1=loginnebo.shift login(login1) # iterate to the csv file row by row till there is any row exists. while(row=product.shift) create_product(row) end logout Here in this code it is reading one extra empty row from the file how to handle that in ruby. I want to control the loop where there is no more rows in the csv file. Can anybody helps.Help will be highly appreciated. Thanks in advance Sampurna ------=_Part_45200_17045927.1165471133121--