File.open

void open(string name, scope const(char)[] stdioOpenmode = "rb") @trusted

Detaches from the current file (throwing on failure), and then attempts to _open file name with mode stdioOpenmode. The mode has the same semantics as in the C standard library fopen function.

Throws

ErrnoException in case of error.