Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   Deleting the last set of data written in text file (http://www.go4expert.com/forums/deleting-set-data-written-text-file-t1835/)

beon 8Nov2006 16:05

Deleting the last set of data written in text file
 
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 8Nov2006 17:00

Re: Deleting the last set of data written in text file
 
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.


All times are GMT +5.5. The time now is 22:02.