File input/output: Difference between revisions
Content deleted Content added
Line 2,581: | Line 2,581: | ||
<lang toka>" input.txt" " output.txt" copy-file</lang> |
<lang toka>" input.txt" " output.txt" copy-file</lang> |
||
=={{header|TUSCRIPT}}== |
|||
<lang tuscript> |
|||
$$ MODE TUSCRIPT |
|||
ERROR/STOP CREATE ("input.txt", seq-o,-std-) |
|||
ERROR/STOP CREATE ("output.txt",seq-o,-std-) |
|||
FILE/ERASE "input.txt" = "Some irrelevant content" |
|||
path2input =FULLNAME(TUSTEP,"input.txt", -std-) |
|||
status=READ (path2input,contentinput) |
|||
path2output=FULLNAME(TUSTEP,"output.txt",-std-) |
|||
status=WRITE(path2output,contentinput) |
|||
</lang> |
|||
=={{header|UNIX Shell}}== |
=={{header|UNIX Shell}}== |
||
Using the 'read' built-in |
Using the 'read' built-in |