Jump to content
Sign in to follow this  
Jonniemac315

Delete Text From CSV file

Recommended Posts

Jonniemac315

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.

Share this post


Link to post
Share on other sites
Jonniemac315

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)

Share this post


Link to post
Share on other sites
Valuater

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

Share this post


Link to post
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
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.