The OpenD Programming Language

write

Writes its arguments in text format to standard output (without a trailing newline).

void
write
(
T...
)
()
if (
!is(T[0] : File)
)

Parameters

args T

the items to write to stdout

Throws

In case of an I/O error, throws an StdioException.

Examples

Reads stdin and writes it to stdout with an argument counter.

import std.stdio;

void main()
{
    string line;

    for (size_t count = 0; (line = readln) !is null; count++)
    {
         write("Input ", count, ": ", line, "\n");
    }
}

Meta