Copy stdin to stdout: Difference between revisions

Content added Content deleted
(added ocaml)
No edit summary
Line 2: Line 2:


Create an executable file that copies stdin to stdout, or else a script that does so through the invocation of an interpreter at the command line.
Create an executable file that copies stdin to stdout, or else a script that does so through the invocation of an interpreter at the command line.

=={{header|Aime}}==
<lang aime>file f;
data b;
f.stdin;
while (f.b_line(b) ^ -1) {
o_(b, "\n");
}</lang>


=={{header|ALGOL 68}}==
=={{header|ALGOL 68}}==