Hi,
I have a file output.txt as follows :
c FILE
c
c
c
p val 25 36
8 1 0
-1 -8 0
-9 -7 0
-9 -2 0
7 2 9 0
-10 6 0
-10 8 0
-6 -8 10 0
-11 -9 0
-11 -3 0
9 3 11 0
12 -10 0
12 -9 0
10 9 -12 0
13 -10 0
I wish to change the line "p val 25 36" to "p val 26 37". Is there a way to do so besides copying the file to a new file and changing the line when writing to the new file.
Is it possible to do using seekp and tellg.
Thanks