Skip to content

MTY_WriteFile

chrisd1100 edited this page Aug 25, 2022 · 1 revision

Write a buffer to a file.

This function writes to the file in binary mode.

bool MTY_WriteFile(
    const char * path,
    const void * buf,
    size_t       size
);

Parameters

path (const char *)

Path to the file.

buf (const void *)

Input buffer to write.

size (size_t)

Size in bytes of buf.

Return value

bool

Returns true on success, false on failure. Call MTY_GetLog for details.

Platform support

Windows   macOS   Android   Linux   Web  

See also

Module: File

Clone this wiki locally