at the end of the file. if the file does not exist - it is trying to create.
a+ open for reading and writing. sets the file pointer at the end of the file. if the file does not exist - it is trying to create.
x only open for recording. sets the file pointer at the beginning of the file. if the file does not exist - it is trying to create, if file exists it returns false and error .
x+ open for reading and writing. sets the file pointer at the beginning of the file. if the file does not exist - it is trying to create, if file exists 