open..Root.File.openOpens file pointed by a given path (creates such file if it does not exist). Moves read position indicator to the begin of file.
Parameters: String path
Return value: reference to this function
NativeCallable, Callable
import("file");
auto f.=(File());
f.open("a.txt");
f.clear();
f.write("Mad scientist.");
if (f.read().==("Mad").&&(f.readAll().==("Mad scientist.")), {
log("Ok");
}, {
log("Error");
})