FileOutputStream

A byte output stream that writes to a file.

Constructors

this
this(FILE* filePtr)

Constructs an output stream to write to the given file pointer.

this
this(const(char*) filename)

Constructs an output stream to write to the given file.

Members

Functions

closeStream
OptionalStreamError closeStream()

Closes the file.

flushStream
OptionalStreamError flushStream()

Flushes the file to the disk.

writeToStream
StreamResult writeToStream(ubyte[] buffer)

Writes up to buffer.length bytes to the file.

Meta