M
Martin Svensson
Hello!
I need some help/recommendations on how to do the following.
I have a program that writes an IP address two control numbers and a
date to file, on one line. It's a basic text file and it looks like this:
----- beginning of file -----
192.168.0.1 0 0 2004-08-01
192.168.0.2 1 0 2004-08-21
192.168.0.4 0 1 2004-08-12
-------- end of file --------
I know how to write data to a file. But what if I want to change data in
this file, for instance, on line two I want to change the first control
number to a 0 instead of a 1. How would I do this?
Thank you for an honest answer.
Best regards
Martin
I need some help/recommendations on how to do the following.
I have a program that writes an IP address two control numbers and a
date to file, on one line. It's a basic text file and it looks like this:
----- beginning of file -----
192.168.0.1 0 0 2004-08-01
192.168.0.2 1 0 2004-08-21
192.168.0.4 0 1 2004-08-12
-------- end of file --------
I know how to write data to a file. But what if I want to change data in
this file, for instance, on line two I want to change the first control
number to a 0 instead of a 1. How would I do this?
Thank you for an honest answer.
Best regards
Martin