formZ SDK | 5.0 API Reference | System | IO Streams
Description
Opens a file as an IO stream for writing. The file name should be pathless. It will thus reside in the current working directory (set by fzrt_file_vspec_set_crnt). This will avoid any platform dependencies on path strings.
Plugin Prototype
fzrt_error_td fz_iost_file_open_write(
floc, | |
fzrt_int | flags, |
iost_ptr, | |
fzrt_unsigned_int | version, |
char | endian ) |
Parameters
floc [Input]
The file location for the file .
flags [Input]
IOST flags. Must be FZ_IOST_FLAGS_NONE.
iost_ptr [Result]
The created IO stream.
version [Input]
The version to write to the stream's header.
endian [Input]
The endianness of the data to be written to the stream.
Returns
FZRT_NOERR on success. Otherwise, an error code.
Availability
5.0.0.0
See Also
fz_iost_file_open_read, fz_iost_file_close
Function Set
Defined in