petsc-3.9.4 2018-09-11
Report Typos and Errors

PetscTestFile

checks for the existence of a file

Synopsis

PetscErrorCode  PetscTestFile(const char fname[], char mode, PetscBool  *flg)
Not Collective

Input Parameter

fname - the filename
mode - either 'r', 'w', or 'x'

Output Parameter

flg -the file exists and satisfies the mode

See Also

PetscTestDirectory(), PetscLs()

Level

intermediate

Location

src/sys/fileio/ftest.c
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages