Deleting the last set of data written in text file

beon's Avatar, Join Date: Nov 2006
Newbie Member
Hi everyone,

I have a problem here, I had tired to log a few set of data inside a text file before running a couple of function. Is there anyway to delete the data entered at the end of the program if there was no error in my function?

thanks alot!!
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
It would be better if you dont write it immediately but have them ready to be written and when no error occurs discard it. Once written you need to read and re-write the needed by discarding the unwanted data.