Take notes on the command line: Difference between revisions

Updated to work with Nim 1.4: replaced "writeln" with "writeLine". Updated also the output.
(Add APL version)
(Updated to work with Nim 1.4: replaced "writeln" with "writeLine". Updated also the output.)
Line 1,639:
else:
var f = open("notes.txt", fmAppend)
f.writelnwriteLine getTime()
f.writelnwriteLine "\t", commandLineParams().join(" ")
f.close()</lang>
Sample format.txt:
<pre>Mon Jul 14 032021-04-21T15:3749:20 201400+02:00
Hello World
2021-04-21T15:51:17+02:00
Mon Jul 14 03:37:45 2014
Hello World again</pre>
 
Anonymous user