PetscFileMode#
Access mode for a file.
Synopsis#
typedef enum {
FILE_MODE_UNDEFINED = -1,
FILE_MODE_READ = 0,
FILE_MODE_WRITE,
FILE_MODE_APPEND,
FILE_MODE_UPDATE,
FILE_MODE_APPEND_UPDATE
} PetscFileMode;
Values#
FILE_MODE_UNDEFINED
- initial invalid valueFILE_MODE_READ
- open a file at its beginning for readingFILE_MODE_WRITE
- open a file at its beginning for writing (will create if the file does not exist)FILE_MODE_APPEND
- open a file at end for writingFILE_MODE_UPDATE
- open a file for updating, meaning for reading and writingFILE_MODE_APPEND_UPDATE
- open a file for updating, meaning for reading and writing, at the end
See Also#
Level#
beginner
Location#
Examples#
src/ksp/ksp/tutorials/ex10.c
src/ksp/ksp/tutorials/ex27.c
src/mat/tutorials/ex16.c
src/ksp/ksp/tutorials/ex72.c
src/mat/tutorials/ex10.c
src/mat/tutorials/ex1.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages