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.
File descriptor to associate with this File.
Mode to associate with this File. The mode has the same semantics semantics as in the C standard library $(CSTDIO fdopen) function, and must be compatible with fd.
ErrnoException in case of error.
See Implementation
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.