formZ SDK | 5.0 API Reference | System | Script Only
Description
Opens the named file and returns a pointer to the file or NULL
if the attempt fails. Legal values for the mode are :
"r" open text file for reading
"w" open text file for writing. Discard previous content, if the file existed.
"a" append to the file. Opens or creates the file for writing at the end.
"r+" open text file for update (reading and writing).
"w+" create text file for update (reading and writing). Discard previous content, if file existed.
"a+" append to the file. Open or create text file for update (reading and writing), writing at end.
Update mode permits reading and writing the same file. fflush must be called between a
read and a write or vice versa. If the mode includes b after the initial letter, as
in "rb" or "w+b", it indicates a binary file. Filenames are limited to FILENAME_MAX
characters. At most FOPEN_MAX files may be open at once.
Parameters
filename [Input]
the name of the file to be opened
mode [Input]
the mode in which to open the file
Returns
pointer to the open file or NULL, if the function fails.
Availability
5.0.0.0