Mercurial > projects > ldc
view tango/tango/io/stream/TextFileStream.d @ 137:ce7b81fb957f trunk
[svn r141] fixed more problems with classinfo
moved more IR state out of the AST classes
author | lindquist |
---|---|
date | Fri, 18 Jan 2008 16:42:16 +0100 |
parents | 1700239cab2e |
children |
line wrap: on
line source
/******************************************************************************* copyright: Copyright (c) 2007 Kris Bell. All rights reserved license: BSD style: $(LICENSE) version: Initial release: Nov 2007 author: Kris *******************************************************************************/ module tango.io.stream.TextFileStream; public import tango.io.FileConduit; private import tango.io.stream.FileStream, tango.io.stream.LineStream, tango.io.stream.FormatStream; /******************************************************************************* Composes a file with line-oriented input *******************************************************************************/ class TextFileInput : LineInput { /*********************************************************************** compose a FileStream ***********************************************************************/ this (char[] path, FileConduit.Style style = FileConduit.ReadExisting) { super (new FileInput (path, style)); } } /******************************************************************************* Composes a file with formatted text output *******************************************************************************/ class TextFileOutput : FormatOutput { /*********************************************************************** compose a FileStream ***********************************************************************/ this (char[] path, FileConduit.Style style = FileConduit.WriteCreate) { super (new FileOutput (path, style)); } } /******************************************************************************* *******************************************************************************/ debug (UnitTest) { }