File file(Ptr ptr, [FileMode] mode=[Read, Write, Append])
ptr: The pointer
mode: The file mode, if known. This should be set if possible.
This coerces a pointer to a C file handle into a
File. This function is intended solely for writing interfaces to C code that returns file handles, and should not be used for other purposes.