FileStream

Accesses the contents of a file as a stream.

Members

Functions

close
void close()

Closes the file handle.

Properties

isOpen
bool isOpen [@property getter]

Determines if the file stream is still open

path
Path path [@property getter]

The path of the file.

Inherited Members

From RandomAccessStream

size
ulong size [@property getter]

Returns the total size of the file.

readable
bool readable [@property getter]

Determines if this stream is readable.

writable
bool writable [@property getter]

Determines if this stream is writable.

seek
void seek(ulong offset)

Seeks to a specific position in the file if supported by the stream.

tell
ulong tell()

Returns the current offset of the file pointer

Meta