Take notes on the command line: Difference between revisions

Content added Content deleted
m (→‎{{header|REBOL}}: Remove vanity tags)
Line 1,177: Line 1,177:
April 1, 2010 5:18:38 PM
April 1, 2010 5:18:38 PM
this is the first note</pre>
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}}==
=={{header|Kotlin}}==