Take notes on the command line: Difference between revisions
Content added Content deleted
(added RPL) |
Alextretyak (talk | contribs) m (→{{header|11l}}: new way of specifying file open mode) |
||
Line 17: | Line 17: | ||
print(File(‘notes.txt’).read(), end' ‘’) |
print(File(‘notes.txt’).read(), end' ‘’) |
||
E |
E |
||
V f = File(‘notes.txt’, |
V f = File(‘notes.txt’, APPEND) |
||
f.write(Time().format("YYYY-MM-DD hh:mm:ss\n")) |
f.write(Time().format("YYYY-MM-DD hh:mm:ss\n")) |
||
f.write("\t"(:argv[1..].join(‘ ’))"\n")</syntaxhighlight> |
f.write("\t"(:argv[1..].join(‘ ’))"\n")</syntaxhighlight> |