An abstract class. See File and Pipe
( docs incomplete )
returns whether the file is open. An open request can fail if a file cannot be found for example.
This method lets you test that the open call succeeded.
Answer the length of the file.
Answer the current file position
Seek to an offset from the origin.
offset - an offset in bytes.
origin - one of the following Integers:
0 - seek from beginning of file.
1 - seek from current position in file.
2 - seek from end of file.
Writes an item to the file.
item - one of the following:
Symbol - writes the name of the Symbol as a C string.
RawArray - write the bytes from any RawArray in big endian.
Reads and returns a String up to lesser of next newline or 1023 chars.
read one byte and return as a Char
read one byte and return as a Integer.
read two bytes and return as an Integer.
read four bytes and return as an Integer.
read four bytes and return as a Float.
read eight bytes and return as a Float.
write a Char as one byte.
write an Integer as one byte.
write an Integer as two bytes.
write an Integer as four bytes.
write a Float as four bytes.
write a Float as eight bytes.
write a null terminated String.
Reads the entire file as a String.
Reads the entire file as an Int8Array.
Reads the entire file as an Int16Array.
Reads the entire file as an Int32Array.
Reads the entire file as an FloatArray.
Reads the entire file as an DoubleArray.Berlin: clubs bars cafes nightlife going out