FileInputStream

A byte input stream that reads from a file. Makes use of the underlying fopen and related C functions.

Constructors

this
this(FILE* filePtr)

Constructs an input stream to read from the given file pointer.

this
this(const(char*) filename)

Constructs an input stream to read from the given file.

Members

Functions

closeStream
OptionalStreamError closeStream()

Closes the file stream by calling fclose on the underlying file pointer.

readFromStream
StreamResult readFromStream(ubyte[] buffer)

Reads up to buffer.length bytes from the file.

Meta