That depends on how the file was opened. The open() system call depends accepts flags that determine how the file will be handled. Have a look at the open() manual page to see what flags are available:
man 2 open
The developer of an application could have decided to append to a file, change the file, or completely rewrite a file from a buffer.
|