std-read-file-strings


Synopsis

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

Description

std-read-file-strings reads a stringlist from a textfile. Every line in the file will be a string in the list. It uses only standard AutoLISP functions like read-line and will not work with any binary file.

It also omits all lines starting with ";" which is different ot the behaviour of std-ft-lines

Example

TEST.INI:

;; config file
[CONFIG]
  Test=1

(std-read-file-strings "TEST.INI") => ("[CONFIG]" "Test=1")

Arguments

fname: A filename of an existing file.

Return Value

A list of strings.

Side Effects

None.

Module

(std-require 'STDFILE)

#- SMALL

Defined in STDFILE