PetscTestFile

Test for a file existing with a specified mode.

Synopsis

int PetscTestFile(const char fname[],char mode,PetscTruth *flg)

Input Parameters

fname - name of file
mode - mode. One of r, w, or x

Output Parameter

flg -PETSC_TRUE if file exists with given mode, PETSC_FALSE otherwise.

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