Take notes on the command line: Difference between revisions
Content added Content deleted
Drkameleon (talk | contribs) (Added Arturo implementation) |
Alextretyak (talk | contribs) (Added 11l) |
||
Line 9: | Line 9: | ||
Then all the arguments, joined with spaces, prepended with a tab, and appended with a trailing newline, are written to NOTES.TXT. |
Then all the arguments, joined with spaces, prepended with a tab, and appended with a trailing newline, are written to NOTES.TXT. |
||
If NOTES.TXT doesn't already exist in the current directory then a new NOTES.TXT file should be created. |
If NOTES.TXT doesn't already exist in the current directory then a new NOTES.TXT file should be created. |
||
=={{header|11l}}== |
|||
<lang 11l>:start: |
|||
I :argv.len == 1 |
|||
print(File(‘notes.txt’).read(), end' ‘’) |
|||
E |
|||
V f = File(‘notes.txt’, ‘a’) |
|||
f.write(Time().format("YYYY-MM-DD hh:mm:ss\n")) |
|||
f.write("\t"(:argv[1..].join(‘ ’))"\n")</lang> |
|||
=={{header|8086 Assembly}}== |
=={{header|8086 Assembly}}== |
||
Line 198: | Line 208: | ||
NOTES.TXT |
NOTES.TXT |
||
A:\></pre> |
A:\></pre> |
||
=={{header|Ada}}== |
=={{header|Ada}}== |