std-ft-nth-line | ![]() |
std-ft-nth-line returns i'th line from the textfile or nil if not found or too short.
std-ft-lines returns a list of lines from the textfile or nil if not found. It returns a list of
to-from+1 lines, the to'th line is also returned, if existing.
The line number argument is one-based, the first line in the file is 1.
(std-ft-nth-line (std-findfile "acad.pgp") 1) => "; This PGP file was created with the AutoCAD Alias Editor." (std-ft-lines (std-findfile "acad.pgp") 1 2) => ("; This PGP file was created with the AutoCAD Alias Editor." "; Last modified 19.08.97 20:45:35")
fname: A filename of an existing file.
from, to, i: A positive integer number.
T on success or nil.
On success it changes the textfile.
(std-require 'STDFILE)
Defined in STDFILE