PetscFileMode#

Access mode for a file.

Synopsis#

`FILE_MODE_UNDEFINED` - initial invalid value
`FILE_MODE_READ` - open a file at its beginning for reading
`FILE_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 writing
`FILE_MODE_UPDATE` - open a file for updating, meaning for reading and writing
`FILE_MODE_APPEND_UPDATE` - open a file for updating, meaning for reading and writing, at the end

See Also#

PetscViewerFileSetMode()

Level#

beginner

Location#

include/petscsystypes.h

Examples#

src/sys/classes/viewer/tutorials/ex1.c.html
src/sys/classes/viewer/tutorials/ex1f90.F90.html
src/sys/tutorials/ex5.c.html
src/sys/tutorials/ex5f90.F90.html
src/vec/vec/tutorials/ex10.c.html
src/vec/vec/tutorials/ex19.c.html
src/vec/vec/tutorials/ex5.c.html
src/vec/vec/tutorials/ex5f.F90.html
src/vec/vec/tutorials/ex6.c.html
src/vec/vec/tutorials/ex6f.F90.html
src/mat/tutorials/ex10.c.html


Edit on GitLab

Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages