I/O Expressions
A set of expressions related to input/output using files, streams, readers and sockets.
Some of these expressions are quite advanced and may be dangerous for beginners.
Accessing files can be quite slow as it relies on the machine's file system.
To avoid the program slowing down it may be preferable to access files on a background process.
File Expressions
[a] new file at %String%
Creates a new file at the given path. Returns that file object.
[the] file at %String%
Retrieves the existing file at the given path. Returns that file object. This may be null
if the file does not exist.
%File% is [a] file
Whether the file is a file (not a folder.)
%File% is [a] folder
Whether the file is a folder (not a file.)
File Properties
reader
The file's input stream.
writer
The file's output stream.
contents
The file's string contents.
name
The file name.
path
The file path.
Stream Properties
all
The input stream's entire contents.
line
The input stream's next line.
Last updated