Jonniemac315 Posted August 26, 2008 Share Posted August 26, 2008 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 More sharing options...
Jonniemac315 Posted August 26, 2008 Author Share Posted August 26, 2008 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 More sharing options...
Valuater Posted August 26, 2008 Share Posted August 26, 2008 (edited) 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 August 26, 2008 by Valuater Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now