FileStream.this

Opens the specified file.

Notes: During destruction of a stream made from this constructor, the dispose function will be called if the object is not already disposed.

  1. this(Mode mode, char[] file)
    class FileStream
    this
    (,
    const char[] file
    )
  2. this(Mode mode, File file, DisposeOnDtor doDtor)

Parameters

mode Mode

The FileStream.Mode to open the file in.

file char[]

The file to open.

Throws

StreamException if file could not be found.

StreamException if mode doesn't specify either Open, Create in some form.

Meta