Download Reference Manual
The Developer's Library for D
About Wiki Forums Source Search Contact

This document has been placed into the public domain by Kris


        Console IO using Tango

        This illustrates console input and output.

        Console I/O in Tango is UTF-8 across both linux and Win32. The
        conversion between various unicode representations is handled
        by higher level constructs.

        Note that Cerr is tied to the console error output, and Cin is
        tied to the console input. 



void main()
        char[] name;

        Cout ("What is your name? ");
        name = Cin.get ();
        Cout ("Hello, ")(name).newline;