File.this

this(FILE * handle, string name, uint refs = 1, bool isPopened = false) @trusted @nogc nothrow
No documentation available for this declaration.
this(string name, scope const(char)[] stdioOpenmode = "rb") @safe

Constructor taking the name of the file to open and the open mode.

Copying one File object to another results in the two File objects referring to the same underlying file.

The destructor automatically closes the file as soon as no File object refers to it anymore.

Parameters

namerange or string representing the file _name
stdioOpenmoderange or string represting the open mode (with the same semantics as in the C standard library fopen function)

Throws

ErrnoException if the file could not be opened.
this(R1 name)

ditto

this(R1 name, R2 mode)

ditto