Mercurial > projects > dwt-addons
diff packageimport.d @ 197:0ea0c9f9008f
Remove tango deprecation warnings.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Wed, 18 Feb 2009 19:35:22 +0100 |
parents | 07f3bab17e54 |
children |
line wrap: on
line diff
--- a/packageimport.d Tue Feb 10 17:12:01 2009 +0100 +++ b/packageimport.d Wed Feb 18 19:35:22 2009 +0100 @@ -1,7 +1,7 @@ module packageimport; import tango.io.FilePath; -import tango.io.File; +import tango.io.device.File; import tango.io.Buffer; import tango.io.stream.FileStream; import tango.io.stream.TextFileStream; @@ -29,7 +29,7 @@ foreach( mod; mods ){ auto filename = Format("{}/{}", dir, mod ); Trace.formatln( "{}", filename ); - auto cont = cast(char[])File( filename ).read; + auto cont = cast(char[])File.get( filename ); auto output = new TextFileOutput( filename ); bool firstline = true; void println( char[] l ){