Pablo Silva Noreña 180462
- "r"
Opens a file for reading. The file must exist.
- "w"
Creates an empty file for writing. If a file with the same name already exists, its content is erased and the file is considered as a new empty file.
- "a"
Appends to a file. Writing operations, append data at the end of the file. The file is created if it does not exist.
- "r+"
Opens a file to update both reading and writing. The file must exist.
- "w+"
Creates an empty file for both reading and writing.
- "a+"
Opens a file for reading and appending.