binio-fopen


Synopsis

(binio-fopen <filename> <mode>)

Description

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.

Arguments

filename: string of a valid filename.

mode: either "r" for read, "w" for write, "rw" for read and write or "a" for append.

Return Value

Either a stream object or nil. The stream may only be used by the binio-f functions and not by plain AutoLISP functions!

Side Effects

Opens the stream and adds it to an internal list of all open binary files. This list is not accessible by AutoLISP.

Module

(std-require-external 'BINIO)

Defined in BINIO