open
(open filename mode)
As an extension to the standard AutoLISP
(open) functions, BricsCAD LISP allows to create / read / write
text files in UTF and Unicode formats.
This can be useful for cross-platform
development (Linux + OSX), or for special purposes (i.e. reading +
writing HTML files).
To provide backward compatibility with
AutoLISP, the mode argument has been extended to specify UTF/Unicode
formats
Arguments |
'filename'
the name of the file to be opened |
Return |
the file handle/pointer, or NIL if opening fails |
Example |
(setq fptr (open myFile "r,
ccs=UNICODE")) |
Remarks 1 |
to open an UTF/Unicode file
for reading : use "r,ccs=UNICODE" which automatically adapts to
actual translation used in the file |
Remarks 2 |
these LISP functions
automatically respect the text file mode : |
© Bricsys NV. All rights reserved. |