write_file

Синтаксис

native write_file(const file[], const text[], line = -1);

Употреба

file
Path to open
text
String to write to
line
Index of the line, starting to 0
If < 0, content will be appended

Описание

Writes text to file.

Забележка

This native is expensive. Consider the use of new file natives (fopen(), fputs(), etc.)
if purpose is to write several lines of a file.

Връщаща стойност

Тази функция няма връщаща стойност.

Грешка

Unable to write [temporary] file