Skip to main content
August 14, 2008
Question

Manipulate CSV files

  • August 14, 2008
  • 2 replies
  • 449 views
Hi,

Basically, I first read the file and then loop to process the data (see attached code).

Now, I would like to remove some rows from the file, let's say last 5 rows.

Would be very much grateful if you could please explain to me how to do this using CF.

Thanks and regards,
Yogesh Mahadnac
This topic has been closed for replies.

2 replies

BKBK
Community Expert
Community Expert
August 17, 2008
Something like this perhaps?

Inspiring
August 14, 2008
read the original file
cfsavecontent
process the original file contents and output the rows you want to keep

write a new file with the variable from cfsavecontent