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

Changes between Version 8 and Version 9 of FilecatExample

Show
Ignore:
Author:
erpe (IP: 89.247.76.212)
Timestamp:
03/01/10 13:15:04 (5 years ago)
Comment:

0.99.9 - compat

Legend:

Unmodified
Added
Removed
Modified
  • FilecatExample

    v8 v9  
    88 
    99private import  tango.io.Console, 
    10                 tango.io.FileConduit
     10                tango.io.device.File
    1111 
    1212void main(char[][] args) 
    1515           { 
    1616           // open the file for writing 
    17            auto dst = new FileConduit (args[1], FileConduit.WriteCreate); 
     17           auto dst = new File (args[1], File.WriteCreate); 
    1818 
    1919           // copy each file onto dst 
    2020           foreach (arg; args[2..args.length]) 
    21                     dst.copy (new FileConduit(arg)); 
     21                    dst.copy (new File(arg)); 
    2222 
    2323           // flush output and close