native LoadFileForMe(const file, buffer, maxlength, &length = 0);
File to load (may be a file from the GCF)
Buffer to store file contents
Maximum size of the file buffer
Variable to store the file length. This may return a number larger than the buffer size
- Loads a file using the LoadFileForMe engine function. The data is truncated if there is not enough space. No null-terminator is applied; the data is the raw contents of the file.
- -1 if the file could not be loaded. Otherwise, the number of cells actually written to the buffer are returned.