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

Changeset 2349

Show
Ignore:
Timestamp:
06/20/07 23:42:17 (1 year ago)
Author:
kris
Message:

fixed WriteTruncate? names per #519

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/example/conduits/filecat.d

    r2256 r2349  
    1313           { 
    1414           // open the file for writing 
    15            auto dst = new FileConduit (args[1], FileConduit.WriteTruncate); 
     15           auto dst = new FileConduit (args[1], FileConduit.WriteCreate); 
    1616 
    1717           // copy each file onto dst 
  • trunk/tango/io/FileConduit.d

    r2319 r2349  
    5959        --- 
    6060        // open another for writing 
    61         auto to = new FileConduit ("copy.txt", FileConduit.WriteTruncate); 
     61        auto to = new FileConduit ("copy.txt", FileConduit.WriteCreate); 
    6262 
    6363        // copy file 
     
    8282        --- 
    8383        // open file for writing 
    84         auto to = new FileConduit ("text.txt", FileConduit.WriteTruncate); 
     84        auto to = new FileConduit ("text.txt", FileConduit.WriteCreate); 
    8585 
    8686        // write an array of content to it