Open an existing file for writing and set the position to the end of that file.
Open the file for reading.
Create a new file for writing.
Open the file for both reading and writing.
Private.