FileInputStream

constructor(fileHandle: Int, mode: FileMode = Mode.READ)

Create an input stream for a file handle. Will create the needed file pointer.

Parameters

fileHandle

The file handle to use

mode

The mode to use to open the file.


constructor(pathName: String, mode: FileMode = Mode.READ)

Create an input stream for a file name. Will create the needed file pointer.

Parameters

pathName

The name of the file to open. If relative depends on the current working directory.

mode

The mode to use to open the file.


constructor(filePtr: FilePtr)

Directly wrap (and take ownership of) the file pointer given.