Easypt

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.

Child of:

File

Signatures:

NativeCallable, Callable

Example:

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());

Possible output:

alpha
beta
gamma
alpha