Skip to content

cf_fs_read

Category: file
GitHub: cute_file_system.h


Reads bytes from a file opened in read mode.

size_t cf_fs_read(CF_File* file, void* buffer, size_t size);
Parameters Description
CF_File The file.
buffer Pointer to a buffer of bytes.
size The size in bytes of buffer.

Remarks

The file must be opened in read mode with cf_fs_open_file_for_read. Returns the number of bytes read. Returns -1 on failure. Virtual File System.

CF_File
cf_fs_file_exists
cf_fs_size
cf_fs_write
cf_fs_eof
cf_fs_tell
cf_fs_seek