Read the contents of a file.
Write contents to a file. The Program will fail if there is a problem.
Read file stats
File stats
Directory entry
File Descriptor
Open file for reading. (r
)
An error occurs if the file does not exist. The stream is positioned at the beginning of the file.
Open file for reading and writing. (r+
)
An exception occurs if the file does not exist. The stream is positioned at the beginning of the file.
Open file for writing. (w
)
The file is created (if it does not exist) or truncated (if it exists). The stream is positioned at the beginning of the file.
Open file for reading and writing. (w+
)
The file is created (if it does not exist) or truncated (if it exists). The stream is positioned at the beginning of the file.
Open file for appending (writing at the end of a file). (a
)
The file is created if it does not exist. The stream is positioned at the end of the file.
Open file for reading and appending. (a+
)
The file is created if it does not exist. The stream is positioned at the end of the file.