Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

kStatus kFile_LoadTo | ( | const kChar * | path,
|  | void * | data,
|  | kSize | capacity
| ) |  |

Reads the specified file into the provided array.

Parameters

  path | Path to file.
  data | Receives file contents.
  capacity | Amount of file to read, in bytes.

Returns
  Operation status (kERROR_INCOMPLETE if capacity is not equal to file size).