vle-file->list

Parent Previous Next

vle-file->list


(vle-file->list  filename  commentchar)

loads the text lines of specified file 'filename' as a list of strings, ignoring all comment lines as defined by 'commentchar'

Arguments

'filename'  name of the file to be loaded
'commentchar'  the "comment" character to ignore comment lines

Return

list of file lines;
or NIL, if the file is not found or empty

Example

(vle-file->list "MyData.dat" ";")
loads all file lines into returned list, and ignores all lines starting with ";" character (omitted)

Alias


Remarks

'filename' is searched in all support pathes, if it does not contain a path;
'commentchar' only used if not NIL; if NIL, all file lines are loaded




©  Menhirs NV. All rights reserved.