File Processing Programming Question

THT

THT

Associate
Joined
10 Mar 2004
Posts
998
Heres what I need to do:

I have a text file with multiple lines which is constantly updating.

I want to read the file and delete the row i process without losing any new data that has been added since I first opened it.


For example:

1) File Has 4 rows
2) Open file read first row
3) Another row is added to the file

I now need to delete line 1, without losing line 5


What the best way to do this - not looking for actual code - simply method
 
hi HT,

Long time no speak (we spoke a long time ago here when I had a differen username)

Yeah I can Do C, C++ - I try to avoid .net cos i just dont like it!

The reason I dont want to leave the entries there, is next time i open the program, i dont want to have to process all those again.
I could clear the file, but then id lose any outstanding entries.

Any ideas?

Thanks
 
Im liking the tail idea

i guess playing around with that could work

im not sure :S

thanks for the help HT

ill look into it further
 
Back
Top Bottom