Copy stdin to stdout: Difference between revisions

Content added Content deleted
(Added JavaScript with Node.js example)
Line 688: Line 688:
# fcopy stdin stdout for older versions</lang>
# fcopy stdin stdout for older versions</lang>


=={{header|VBScript}}==
VBScript can't get single chars from stdin, so we have to implement it line to line. Ctrl-Z stops.
<lang vb>
do
s=wscript.stdin.readline
wscript.stdout.writeline s
loop until asc(left(s,1))=26
</lang>
=={{header|Wren}}==
=={{header|Wren}}==
In the following script, stdin and stdout are both assumed to be connected to a terminal.
In the following script, stdin and stdout are both assumed to be connected to a terminal.