Skip to content

Instantly share code, notes, and snippets.

@angerman
Created December 3, 2009 22:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angerman/248618 to your computer and use it in GitHub Desktop.
Save angerman/248618 to your computer and use it in GitHub Desktop.
(with-random-access-reader "/Users/angerman/upps.data.model"
(println (next-line)) ;; first line
(println (next-line)) ;; second line
(save-excursion
(println (subs (last (lazy-rest)) 0 20))) ;; last line's first 20 char
(println (next-line)) ;; third line
(println (subs (last (lazy-rest)) 0 20))) ;; last lines first 20 char
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment