WriteFile

Last Updated2020-07-09
Created At2007-12-16

Writes binary data to a file.

native bool WriteFile(Handle hndl, const any[] items, int num_items, int size)

Parameters

Handle hndl
Handle to the file.
const any[] items
Array of items to write. The data is read directly. That is, in 1 or 2-byte mode, the lower byte(s) in each cell are used directly, rather than performing any casts from a 4-byte number to a smaller number.
int num_items
Number of items in the array.
int size
Size of each item in the array in bytes. Valid sizes are 1, 2, or 4.

Return Value

bool True on success, false on error.

Error

Invalid Handle.