• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Manipulate CSV files

Guest
Aug 14, 2008 Aug 14, 2008

Copy link to clipboard

Copied

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
TOPICS
Advanced techniques

Views

413

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 14, 2008 Aug 14, 2008

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 17, 2008 Aug 17, 2008

Copy link to clipboard

Copied

LATEST
Something like this perhaps?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation