File.fdopen

void fdopen(int fd, scope const(char)[] stdioOpenmode = "rb") @safe

First calls detach (throwing on failure), then attempts to associate the given file descriptor with the File, and sets the file's name to null.

The mode must be compatible with the mode of the file descriptor.

Throws

ErrnoException in case of error.

Parameters

fdFile descriptor to associate with this File.
stdioOpenmodeMode to associate with this File. The mode has the same semantics as in the POSIX library function fdopen and must be compatible with fd.
void fdopen(int fd, scope const(char)[] stdioOpenmode, string name) @trusted
No documentation available for this declaration.