as a relative newcomer to Lisp and especially newLisp I would like to ask how a function in good style looks like which does the following:
It reads in a text file line by line and gives back a list of all this lines.
Call
Code: Select all
(read-textfile-into-list "myFile.txt")
http://www.newlisp.org/downloads/manual_frame.html
command open
and there is a read-line function. However I do not know how to properly properly initialize the list? Which functions should I use to append to the list?
Regards
HJH