Skip to main content

File Modes

note

These file modes are used by fopen.

ModeDescription
io_readReads from the file.
io_writeWrite in the file, or create the file if it does not exist. Erases all existing contents.
io_readwriteReads the file or creates it if it doesn't already exist.
io_appendAppends (adds) to file, write-only. If the file does not exist, it is created.