Changes between Version 8 and Version 9 of FilecatExample
- Timestamp:
- 03/01/10 18:15:04 (14 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
FilecatExample
v8 v9 8 8 9 9 private import tango.io.Console, 10 tango.io. FileConduit;10 tango.io.device.File; 11 11 12 12 void main(char[][] args) 15 15 { 16 16 // open the file for writing 17 auto dst = new File Conduit (args[1], FileConduit.WriteCreate);17 auto dst = new File (args[1], File.WriteCreate); 18 18 19 19 // copy each file onto dst 20 20 foreach (arg; args[2..args.length]) 21 dst.copy (new File Conduit(arg));21 dst.copy (new File(arg)); 22 22 23 23 // flush output and close