View Full Version : I need some help with text files please.......

Silver Sun
02-01-2003, 01:28 AM
...Is it possible to have an area of a text file not be over written when i write to it in r+?

I need a piece of text on a file to remain, even though the rest of the text file is over written.

Thanks in advance.

02-01-2003, 02:53 AM
no, you can add to the end of an existing textfile with 'a+' but you cant get selective with that.

02-01-2003, 02:18 PM
the viable workaround is to read the file into a string (or array of strings), grab the bit you want to keep, build a new insert string and write that to the file.