File.open

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 $(CSTDIO fopen) function.

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

Throws

ErrnoException in case of error.

Meta