Skip to content

MTY_AppendTextToFile

chrisd1100 edited this page Aug 25, 2022 · 2 revisions

Append formatted text to a file.

This function appends to the file in text mode.

Warning: Be careful with your format string, if it is incorrect this function will have undefined behavior.

bool MTY_AppendTextToFile(
    const char * path,
    const char * fmt,
    ...)         MTY_FMT(2,
    3
);

Parameters

path (const char *)

Path to the file.

fmt (const char *)

Format string to append.

MTY_FMT(2 (...))

3

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