std-read-file-list


Synopsis

(std-read-file-list <fname>)

Description

std-read-file-list reads a list of lisp lines from a textfile. Every line is converted to a lisp list via (read (strcat "(" line ")").

It uses only standard AutoLISP functions like read-line and will not work with any binary file. I also omits lines containing only whitespace or nothing and lisp-like comments, including lines starting with ";" or inline comments between ;| and |;

Example

TEST.LST:

; testfile

  "test" 1 50.0 test
(std-read-file-list "TEST.LST") => (("test" 1 50.0 TEST))

Arguments

fname: A filename of an existing file.

Return Value

A list of lists.

Side Effects

None.

Module

(std-require 'STDFILE)

#- SMALL

Defined in STDFILE