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/ex15.c
src/dm/tutorials/ex10.c
src/mat/tutorials/ex16.c
src/dm/tutorials/ex9.c
src/dm/tutorials/ex21.c
src/dm/tutorials/ex7.c
src/dm/tutorials/ex20.c
src/tao/leastsquares/tutorials/tomography.c
src/dm/tutorials/ex1.c
src/tao/constrained/tutorials/tomographyADMM.c
Examples#
src/mat/tutorials/ex12.c
src/tao/tutorials/ex3.c
src/mat/tutorials/ex16.c
src/mat/tutorials/ex10.c
src/mat/tutorials/ex1.c
src/tao/constrained/tutorials/maros.c
src/tao/leastsquares/tutorials/tomography.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages