Signature
native write_file(const file[], const text[], line = -1);
Description
Writes text to file.
Notes
-
This native is expensive. Consider the use of new file natives (fopen(), fputs(), etc.)
if purpose is to write several lines of a file.
Parameters
- file — Path to open
- text — String to write to
-
line
—
Index of the line, starting to 0
If < 0, content will be appended
No return value
Errors
- Unable to write [temporary] file