RosettaCodeData/Task/Take-notes-on-the-command-line/Julia/take-notes-on-the-command-line.julia
2023-07-01 13:44:08 -04: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)