comparison tango/tango/io/stream/TextFileStream.d @ 132:1700239cab2e trunk

[svn r136] MAJOR UNSTABLE UPDATE!!! Initial commit after moving to Tango instead of Phobos. Lots of bugfixes... This build is not suitable for most things.
author lindquist
date Fri, 11 Jan 2008 17:57:40 +0100
parents
children
comparison
equal deleted inserted replaced
131:5825d48b27d1 132:1700239cab2e
1 /*******************************************************************************
2
3 copyright: Copyright (c) 2007 Kris Bell. All rights reserved
4
5 license: BSD style: $(LICENSE)
6
7 version: Initial release: Nov 2007
8
9 author: Kris
10
11 *******************************************************************************/
12
13 module tango.io.stream.TextFileStream;
14
15 public import tango.io.FileConduit;
16
17 private import tango.io.stream.FileStream,
18 tango.io.stream.LineStream,
19 tango.io.stream.FormatStream;
20
21 /*******************************************************************************
22
23 Composes a file with line-oriented input
24
25 *******************************************************************************/
26
27 class TextFileInput : LineInput
28 {
29 /***********************************************************************
30
31 compose a FileStream
32
33 ***********************************************************************/
34
35 this (char[] path, FileConduit.Style style = FileConduit.ReadExisting)
36 {
37 super (new FileInput (path, style));
38 }
39 }
40
41
42 /*******************************************************************************
43
44 Composes a file with formatted text output
45
46 *******************************************************************************/
47
48 class TextFileOutput : FormatOutput
49 {
50 /***********************************************************************
51
52 compose a FileStream
53
54 ***********************************************************************/
55
56 this (char[] path, FileConduit.Style style = FileConduit.WriteCreate)
57 {
58 super (new FileOutput (path, style));
59 }
60 }
61
62
63 /*******************************************************************************
64
65 *******************************************************************************/
66
67 debug (UnitTest)
68 {
69 }