Create a file from a pointer
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.
Kaya standard library by Edwin Brady, Chris Morris and others ([email protected]). For further information see http://kayalang.org/
The Kaya standard library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License (version 2.1 or any later version) as published by the Free Software Foundation.
IO.ptr (3kaya)