Anonymous user
Take notes on the command line: Difference between revisions
m
→{{header|REXX}}: changed/added comments and whitespace, changed indentations.
(Added Elixir) |
m (→{{header|REXX}}: changed/added comments and whitespace, changed indentations.) |
||
Line 1,683:
=={{header|REXX}}==
<lang rexx>/*REXX program implements the "NOTES" command (append text to a file from the C.L.).*/
timestamp=right(date(),11,0) time() date('W') /*create a (current) date
nFID = 'NOTES.TXT' /*the fileID of the "notes" file. */
if '
else tab=
if arg()==0 then do while lines(nFID) /*No
say linein(Nfid) /*
end /*while*/
else do
call lineout nFID,timestamp /*append the timestamp
call lineout nFID,tab||arg(1) /*
end
/*stick a fork in it, we're all done. */</lang>
=={{header|Ruby}}==
|