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#
Examples#
src/dm/tutorials/ex21.c
src/dm/impls/plex/tutorials/ex5.c
src/dm/impls/stag/tutorials/ex4.c
src/dm/impls/stag/tutorials/ex6.c
src/dm/tutorials/ex20.c
src/dm/tutorials/ex1.c
src/dm/tutorials/ex10.c
src/dm/tutorials/ex15.c
src/dm/tutorials/ex7.c
src/dm/tutorials/ex9.c
Examples#
src/ts/tutorials/ex11_sa.c
src/dm/impls/plex/tutorials/ex5.c
src/dm/impls/plex/tutorials/ex15.c
src/vec/vec/tutorials/ex5.c
src/dm/tutorials/ex10.c
src/ts/tutorials/ex30.c
src/dm/tutorials/ex15.c
src/dm/tutorials/ex9.c
src/ts/tutorials/ex28.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages