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


        open a file, and stream directly to console


private import,

void main (char[][] args)
        if (args.length is 2)
           // open a file for reading
           auto fc = new File (args[1]);

           // stream directly to console
           Cout ("usage is: filecopy filename").newline;