binio-fopen | ![]() ![]() |
(binio-fopen <filename> <mode>)
Opens a file with mode "r" "w" "rw" or "a" and returns a stream object. Streams returned by binio-fopen are incompatible with plain AutoLISP functions!
On invalid modes an error is thrown.
Dependant on an external library: so far only binio.fas for ViLL or vlisp.
filename: string of a valid filename.
mode: either "r" for read, "w" for write, "rw" for read and write or "a" for append.
Either a stream object or nil. The stream may only be used by the binio-f functions and not by plain AutoLISP functions!
Opens the stream and adds it to an internal list of all open binary files. This list is not accessible by AutoLISP.
(std-require-external 'BINIO)
Defined in BINIO