Copy stdin to stdout: Difference between revisions
Added XPL0 example.
(Added XPL0 example.) |
|||
Line 696:
loop until asc(left(s,1))=26
</lang>
=={{header|Wren}}==
In the following script, stdin and stdout are both assumed to be connected to a terminal.
Line 712 ⟶ 713:
Stdin.isRaw = false</lang>
=={{header|
Device 1 is stdin without echoing a character to the screen. Device 0 (or 1) is
stdout, which displays the character on the monitor. This program can
list a file to the screen like this: stdio <file.txt
<lang XPL0>int C;
loop [C:= ChIn(1);
if C = $1A \EOF\ then quit;
ChOut(0, C);
]</lang>
=={{header|zkl}}==
|