Zen API
 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
pathPath to file.
dataReceives file contents.
capacityAmount of file to read, in bytes.
Returns
Operation status (kERROR_INCOMPLETE if capacity is not equal to file size).