PetscFileMode#

Access mode for a file.

Synopsis#

Values#

  • FILE_MODE_UNDEFINED - initial invalid value

  • FILE_MODE_READ - open a file at its beginning for reading, string value "read"

  • FILE_MODE_WRITE - open a file at its beginning for writing (will create if the file does not exist), string value "write"

  • FILE_MODE_APPEND - open a file at end for writing, string value "append"

  • FILE_MODE_UPDATE - open a file for updating, meaning for reading and writing, string value "update"

  • FILE_MODE_APPEND_UPDATE - open a file for updating, meaning for reading and writing, at the end, string value "append_update"

See Also#

PetscViewerFileSetMode()

Level#

beginner

Location#

include/petscsystypes.h

Examples#

src/sys/classes/viewer/tutorials/ex1.c
src/sys/classes/viewer/tutorials/ex1f90.F90
src/sys/tutorials/ex5.c
src/sys/tutorials/ex5f90.F90
src/sys/classes/viewer/tests/ex6.c
src/sys/classes/viewer/tests/ex8.c
src/sys/tests/ex15.cxx
src/sys/tests/ex80f.F90
src/dm/impls/plex/tutorials/ex15.c
src/dm/impls/plex/tutorials/ex16.c


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