Jump to content

Delete Text From CSV file


Recommended Posts

I want to delete a line out of a CSV file Is there any way to do this. I am doing it because I have a script that runs and puts data into a webpage and after it is done I want the record delete out of the file in case the script crashes for whatever reason I can pick up were I left off.

Link to comment
Share on other sites

I want to delete a line out of a CSV file Is there any way to do this. I am doing it because I have a script that runs and puts data into a webpage and after it is done I want the record delete out of the file in case the script crashes for whatever reason I can pick up were I left off.

I figured it out I used this.

#include <file.au3>

$x = 2

_FileWriteToLine ("Filename", $x, "", 1)

Link to comment
Share on other sites

I had the same idea with mine. First I made a counter so I would know exactly where I was ( what line number was used last ) and I wrote the line in a "todays date" file. If you used filereadtoarray() you can delete the line "number" if you want with _FileWriteToLine() or use _FileWriteFromArray()

8)

... a little slow with my ideas...lol

Edited by Valuater

NEWHeader1.png

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...