(notonline)-->
without js -- (file i/o)
constant cmd = command_line(),
filename = "notes.txt"
if length(cmd)<3 then
object text = get_text(filename)
printf(1,"%s\n",iff(string(text)?text:"<empty>"))
else
integer fn = open(filename,"a")
printf(fn,"%d-%02d-%02d %d:%02d:%02d\n",date())
printf(fn,"\t%s\n",join(cmd[3..$]))
close(fn)
end if