New answers tagged

2

You're still going need to read the entire file, but you don't have to process every line, since you need just first N lines. (defun your-read-lines (file n) "Return first N lines of FILE." (with-temp-buffer (insert-file-contents-literally file) (cl-loop repeat n unless (eobp) collect (prog1 (buffer-substring-no-...


Top 50 recent answers are included