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
Property | Description |
---|---|
| The file's input stream. |
| The file's output stream. |
| The file's string contents. |
| The file name. |
| The file path. |
Stream Properties
Property | Description |
---|---|
| The input stream's entire contents. |
| The input stream's next line. |
Last updated