Easypt

write

..Root.File.write

Appends data to a file. Moves read position indicator to the begin of file.

Child of:

File

Signatures:

NativeCallable, Callable

Example:

import("file");

auto f.=(File());

f.open("a.txt");
f.clear();
f.write("afpha beta\ngamma");

log(f.read());
log(f.read());
log(f.read());

f.write("delta");

log(f.read());

Possible output:

alpha
beta
gamma
alpha