Code Golf
add tag
Since TopAnswers already [has]( a post stolen from [Martin Ender](, let's steal another one! Your task is to write a program that copies an input taken from STDIN to STDOUT. [Link](

|  Input | Output |
Top Answer
# Polyglot ([W], [GolfScript], [Flurry]), 0 bytes


Works in at least W, Golfscript [(GS: TIO)][TIO-k7am8gmc], and Flurry, likely more. These languages push input to the stack and implicitly print the stack at the end. They accept input in any format and get converted to strings for output.

[TIO-k7am8gmc]: "GolfScript – Try It Online"
Answer #2 APL (Dyalog Unicode)
# [APL (Dyalog Unicode)], 1 [byte]( "When can APL characters be counted as 1 byte each?") ([SBCS]( ".dyalog files using a single byte character set"))

Full program.


[Try it online!][TIO-k88n336w]

`⍞` prompts from stdin, with printing to stdout happening implicitly.

[APL (Dyalog Unicode)]:
[TIO-k88n336w]: "APL (Dyalog Unicode) – Try It Online"
Answer #3 Ahead
# [Ahead], 4 bytes
This program will not write to STDOUT until STDIN is closed or empty.

    S slurp stdin to string
    U reverse string
    W write string
    @ end

[Try it online!][TIO-k7mzpytr]

[TIO-k7mzpytr]: "Ahead – Try It Online"
Answer #4
[MAWP 0.1](, 7 bytes
|        push all input characters as ascii values
0        push 0 to stack
~        reverse stack
[        start of loop. If no input, skip loop due to 0
;        print as ascii char
]        loop end. If all ascii values printed, end loop due to 0
.        terminate program
Answer #5
# [Rust], 75 bytes

    ||{use std::io::*;for x in stdin().bytes(){stdout().write(&[x.unwrap()]);}}


    // closure with no arguments
    || {
        use std::io::*;			// This is shorter than the prelude
        for x in stdin().bytes() {
            	&[				// Stdout::write takes an &[u8]
                	x.unwrap()	// x is a Result<u8, std::io::Error>

[Try it online!][TIO-kb7rtjac]

[TIO-kb7rtjac]: "Rust – Try It Online"

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.