Mail Archives: djgpp/1997/09/09/00:32:41
At 10:48 9/8/1997 GMT, cbalciza AT mail DOT cccis DOT ro wrote:
>how can I open a file for both reading and writing without
>erasing the previous file content ?
I don't think rewriting a file in place works. The preferred method is to
write the new version to a temporary file, then replace the original with
it. A good example is the `utod' and `dtou' programs that come with DJGPP;
find their source in the library source zip.
Nate Eldredge
eldredge AT ap DOT net
- Raw text -