J
Jon
I am trying to accomplish the following with a text file...
1 open the file
2 loop through it line by line
3 if need be, modify the current line
4 replace the old line in the file with the newly modified line
5 close the file
I know how to do 1,2,3 and 5, but I'm not having any luck writing the
modified line back to the file (preferably at the same position) and
removing the old line.
Can anyone shed some light on that portion of it? Thanks
1 open the file
2 loop through it line by line
3 if need be, modify the current line
4 replace the old line in the file with the newly modified line
5 close the file
I know how to do 1,2,3 and 5, but I'm not having any luck writing the
modified line back to the file (preferably at the same position) and
removing the old line.
Can anyone shed some light on that portion of it? Thanks