Take notes on the command line: Difference between revisions

Line 1,052:
(if (file-exists? file)
(call-with-input-file* file
( λ(i) (copy-port i (current-output-port))))
(raise-user-error 'notes "missing ~a file" file))
(call-with-output-file* file #:exists 'append
( λ(o) (fprintf o "~a\n\t~a\n"
(date->string (current-date) #t)
(string-join notes))))))