C# Delete and Write specific data in a text file???
-
I'm inserting data into a text log file. I need to delete only certain lines of data, generally from line 50 to the end (EOF). I then need to write data to the same file starting at line 50. Q. How do I delete certain lines of data??? Q. How do I delete from a certain line of data the EOF??? Q. How do I start writing at a specific line???
-
I'm inserting data into a text log file. I need to delete only certain lines of data, generally from line 50 to the end (EOF). I then need to write data to the same file starting at line 50. Q. How do I delete certain lines of data??? Q. How do I delete from a certain line of data the EOF??? Q. How do I start writing at a specific line???
1. read each line into an arraylist, then delete the lines u dont need, then write to file again. 2. there is only one EOF and thats at the end-of-file. 3. see 1 top secret xacc-ide 0.0.1