C4 Engine
C4 Engine API Documentation

File::WriteFile

Defined in:  C4Files.h
Writes data to a file.
Prototype

FileResult WriteFile(const void *buffer, uint32 size);

Parameters
buffer A pointer to the location from which data will be written to the file.
size The number of bytes to write to the file.
Description
The WriteFile function attempts to perform a synchronous write operation for a file object. If successful, this function blocks until the write operation completes. The return value is one of the following file result codes.
kFileOkay The write operation was successfully completed.
kFileNotOpen No file has been opened for the File object.
kFileIOFailed The operation failed because the operating system returned an error.
See Also

File::ReadFile