From: James Gray Date: 2009-02-28T00:52:57+09:00 Subject: Re: How to find the specific row of CSV file. On Feb 27, 2009, at 8:19 AM, Salil Gaikwad wrote: > I want to change or read only specific row of CSV file, i don't know > how > to do that.i.e. In my CSV file there are 10 no. of lines i want to > read/write only 5th one how to do that. > > Any help is appreciated. The steps I would use: 1. Open the file you want to read with FasterCSV::open() 2. Open a different file to write into with FasterCSV::open() 3. Use each() to read the rows from the in file 4. Inside the each() block, write the rows to the out file 5. Add some code before the write that changes the line you want to change (if you really want an exact row, FasterCSV#lineno() can help) 6. Rename new file to replace old (if you don't want to save the old data) If you get stuck along the way, send us your code and we will try to help. James Edward Gray II