MPI 04.00 Reference >> mpiPlatform

mpiPlatformFileOpen

Declaration

int32_t mpiPlatformFileOpen(const  char           *fileName,
                         MPIPlatformFileMode   mode)

 

Required Header: stdmpi.h

Description

mpiPlatformFileOpen opens a file handle. mpiPlatformFileOpen is a platform independent replacement for the C function fopen().

fileName The name of the file to open.
mode The access mode used to open the file. Different MPIPlatformFileMode values may be or'ed together to produce the desired mode.
For example:
MPIPlatformFileModeREAD | MPIPlatformFileModeBINARY
Returns
mpiPlatformFileOpen returns the newly created file handle.

See Also

mpiPlatformFileClose | mpiPlatformFileRead | mpiPlatformFileWrite | MPIPlatformFileMode