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.
range or string representing the file name
range or string represting the open mode (with the same semantics as in the C standard library $(CSTDIO fopen) function)
ErrnoException if the file could not be opened.
See Implementation
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.