Skip to content

cf_fs_read_entire_file_to_memory

Category: file
GitHub: cute_file_system.h


Reads an entire file into a buffer of memory and returns it.

void* cf_fs_read_entire_file_to_memory(const char* virtual_path, size_t* size);
Parameters Description
virtual_path A path to the file.
size If the file exists the size of the file is stored here.

Remarks

Call cf_free on it when done. Virtual File System.

cf_fs_write_string_file
cf_fs_read_entire_file_to_memory_and_nul_terminate
cf_fs_write_entire_buffer_to_file