character*(*), intent(in) :: name integer, intent(in) :: fmode
Arguments
name
File name
cmode
File open mode for C/C++
= r,
Open for reading only
= w,
Open for writing
= r+,
Open for update (reading and writing)
= w+,
Open for writing
fmode
File open mode for F90/VB.NET
= GREADONLY,
Open for reading only
= GWRITE,
Open for writing
= GUPDATE,
Open for update (reading and writing)
= GSCRATCH,
Open scratch file (removed at gFclose())
Description
The routine gFopen() is used to open a GINO file unit for use with routines associated with file I/O operations. If successful the routine returns a pointer of type GFILE in the C/C++ version or an integer file unit in the F90/VB.NET version which is required by these routines.
The file is opened with the name passed in the character string name and with one of the above specified modes.
If an unspecified mode is given, or the file cannot be opened the routine returns the NULL pointer (from <stdio.h>) for the C/C++ version or 0 (zero) for the F90/VB.NET version.
The file can be closed with the routine gFclose().