Skip to content

InputStream

class InputStream < Object

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

Factory Functions

Name Description
InputStream Create an input stream from an already-open file.

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.

Factory Function Details

function InputStream(file:File) -> InputStream

Create an input stream from an already-open file.

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.