Skip to content

InputStream


class InputStream

Input stream. Supports sequential reading only, ignoring white space.

Member Variables

Name Description
file:File? File handle.

Member Functions

Name Description
open Open file.
open Open file with default mode.
close Close file.
eof Check for end-of-file.
scanInteger Read integer.
scanReal Read real.

Member Function Details

close

function close()

Close file.

eof

function eof() -> Boolean

Check for end-of-file.

open

function open(path:String, mode:Integer)

Open file.

- **path**  Path.
- **mode**  Mode.

function open(path:String)

Open file with default mode.

- **path**  Path.

scanInteger

function scanInteger() -> Integer?

Read integer.

scanReal

function scanReal() -> Real?

Read real.