File open, Change, and save.
Posted on 1999-07-26
I want to update a .ini file via an executable. First I need to be able to read the .ini file, then change 1 line, then save the file to its original location. I can't just do a file replace because the .ini file may differ from machine to machine. I do however know that the line I need to change will always remain on line 9. How can i open the file, do a line replace then save the file?