Take notes on the command line: Difference between revisions

m (→‎{{header|REBOL}}: Remove vanity tags)
Line 1,177:
April 1, 2010 5:18:38 PM
this is the first note</pre>
 
=={{header|Julia}}==
<lang julia>using Dates
 
const filename = "NOTES.TXT"
 
if length(ARGS) == 0
fp = open(filename, "r")
println(read(fp, String))
close(fp)
else
fp = open(filename, "a+")
write(fp, string(DateTime(now()), "\n\t"))
write(fp, join(ARGS, " "))
write(fp, "\n")
close(fp)
end
</lang>
 
=={{header|Kotlin}}==
4,102

edits