read
..Root.File.read
Reads the characters from the file starting at position pointed by read position indicator until first whitespace is encountered. Moves read position indicator to next non whitespace character.
String
NativeCallable
, Callable
import("file");
auto f.=(File());
f.open("a.txt");
f.clear();
f.write("alpha beta\ngamma");
log(f.read());
log(f.read());
log(f.read());
f.write("delta");
log(f.read());
alpha
beta
gamma
alpha