Mercurial > projects > dwt-win
diff dwt/dwthelper/FileOutputStream.d @ 332:1ee938a6e02e
Tango updates, removing trace prints and added prints via Logger
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sun, 01 Feb 2009 19:40:09 +0100 |
parents | 8d53428f9be0 |
children | 210994f12c4c |
line wrap: on
line diff
--- a/dwt/dwthelper/FileOutputStream.d Tue Jan 27 10:40:55 2009 +0100 +++ b/dwt/dwthelper/FileOutputStream.d Sun Feb 01 19:40:09 2009 +0100 @@ -9,23 +9,23 @@ import dwt.dwthelper.utils; version(TANGOSVN){ -import tango.io.device.FileConduit; +import TangoFile = tango.io.device.File; } else { -import tango.io.FileConduit; +import TangoFile = tango.io.FileConduit; } public class FileOutputStream : dwt.dwthelper.OutputStream.OutputStream { alias dwt.dwthelper.OutputStream.OutputStream.write write; alias dwt.dwthelper.OutputStream.OutputStream.close close; - FileConduit fc; + TangoFile.File fc; public this ( String name ){ - fc = new FileConduit( name, FileConduit.WriteCreate ); + fc = new TangoFile.File( name, TangoFile.File.WriteCreate ); } public this ( String name, bool append ){ - fc = new FileConduit( name, append ? FileConduit.WriteAppending : FileConduit.WriteCreate ); + fc = new TangoFile.File( name, append ? TangoFile.File.WriteAppending : TangoFile.File.WriteCreate ); } public this ( dwt.dwthelper.File.File file ){