ErrnoException if the file could not be opened.File.this
this
(FILE * handle, string name, uint refs = 1, bool isPopened = false) @trusted @nogc nothrowNo documentation available for this declaration.
this
(string name, scope const(char)[] stdioOpenmode = "rb") @safeConstructor 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
name | range or string representing the file _name |
stdioOpenmode | range or string represting the open mode (with the same semantics as in the C standard library fopen function) |
Throws
this
(R1 name)ditto
this
(R1 name, R2 mode)ditto