RosettaCodeData/Task/Take-notes-on-the-command-line/Julia/take-notes-on-the-command-line.julia
2019-09-12 10:33:56 -07:00

12 lines
242 B
Text

using Dates
const filename = "NOTES.TXT"
if length(ARGS) == 0
fp = open(filename, "r")
println(read(fp, String))
else
fp = open(filename, "a+")
write(fp, string(DateTime(now()), "\n\t", join(ARGS, " "), "\n"))
end
close(fp)