Next: System_float, Previous: System_boolean, Up: System
System.file
Implements: see System_object
Represents a disk file.
Supported constructors:
System.file(filename, mode)
filename
using the given mode
. mode
is a string up to
two bytes long, with the first byte containing "r", "w", or "a" (read, write or
append, repsectively), followed by an optional "+" symbol to open for both read
and write.
Supported methods:
readline()
null
if end of file is
reached.
read(bytes)
bytes
from the file. Returns null
if end of file is
reached.
write(string)
seek(pos)
pos
in the file.
close()