]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/strmfile.tex
wxChoice/wxComboBox background colour change (to get back to where we were);
[wxWidgets.git] / docs / latex / wx / strmfile.tex
CommitLineData
e2cad352
GL
1% -----------------------------------------------------------------------------
2% wxFileInputStream
3% -----------------------------------------------------------------------------
4\section{\class{wxFileInputStream}}\label{wxfileinputstream}
5
36edded9 6This class represents data read in from a file. There are actually
65045edd
RR
7two such groups of classes: those documented here, and another group called
8wxFFileInputStream, wxFFileOutputStream and wxFFileStream which are not
9based on file descriptors (and their wxWindows equivalent wxFile) but the
10FILE* type (and wxFFile). Apart from the different constructor ("FILE *file"
11instead if "int fd") their interface is identical.
12
e2cad352
GL
13\wxheading{Derived from}
14
15\helpref{wxInputStream}{wxinputstream}
16
954b8ae6
JS
17\wxheading{Include files}
18
19<wx/wfstream.h>
20
e2cad352
GL
21\wxheading{See also}
22
36edded9 23\helpref{wxStreamBuffer}{wxstreamBuffer}, \helpref{wxFileOutputStream}{wxfileoutputstream}
e2cad352
GL
24
25% ----------
26% Members
27% ----------
28\latexignore{\rtfignore{\wxheading{Members}}}
29
30\membersection{wxFileInputStream::wxFileInputStream}
31
4dba84be 32\func{}{wxFileInputStream}{\param{const wxString\&}{ ifileName}}
e2cad352
GL
33
34Opens the specified file using its \it{ifilename} name in read-only mode.
35
4dba84be 36\func{}{wxFileInputStream}{\param{wxFile\&}{ file}}
e2cad352
GL
37
38Initializes a file stream in read-only mode using the file I/O object \it{file}.
39
4dba84be 40\func{}{wxFileInputStream}{\param{int}{ fd}}
e2cad352
GL
41
42Initializes a file stream in read-only mode using the specified file descriptor.
43
44\membersection{wxFileInputStream::\destruct{wxFileInputStream}}
4dba84be
JS
45
46\func{}{\destruct{wxFileInputStream}}{\void}
e2cad352
GL
47
48Destructor.
49
50\membersection{wxFileInputStream::Ok}
4dba84be 51
e2cad352
GL
52\constfunc{bool}{Ok}{\void}
53
54Returns TRUE if the stream is initialized and ready.
55
56% -----------------------------------------------------------------------------
57% wxFileOutputStream
58% -----------------------------------------------------------------------------
59\section{\class{wxFileOutputStream}}\label{wxfileoutputstream}
60
36edded9
JS
61This class represents data written to a file. There are actually
62two such groups of classes: those documented here, and another group called
63wxFFileInputStream, wxFFileOutputStream and wxFFileStream which are not
64based on file descriptors (and their wxWindows equivalent wxFile) but the
65FILE* type (and wxFFile). Apart from the different constructor ("FILE *file"
66instead if "int fd") their interface is identical.
67
e2cad352
GL
68\wxheading{Derived from}
69
70\helpref{wxOutputStream}{wxoutputstream}
71
954b8ae6
JS
72\wxheading{Include files}
73
74<wx/wfstream.h>
75
e2cad352
GL
76\wxheading{See also}
77
36edded9 78\helpref{wxStreamBuffer}{wxstreamBuffer}, \helpref{wxFileInputStream}{wxfileinputstream}
e2cad352
GL
79
80% ----------
81% Members
82% ----------
83\latexignore{\rtfignore{\wxheading{Members}}}
84
85\membersection{wxFileOutputStream::wxFileOutputStream}
86
4dba84be 87\func{}{wxFileOutputStream}{\param{const wxString\&}{ ofileName}}
e2cad352
GL
88
89Creates a new file with \it{ofilename} name and initializes the stream in
90write-only mode.
91
294e9a7a 92\func{}{wxFileOutputStream}{\param{wxFile\&}{ file}}
4dba84be 93
e2cad352
GL
94Initializes a file stream in write-only mode using the file I/O object \it{file}.
95
96\func{}{wxFileOutputStream}{\param{int}{ fd}}
4dba84be 97
e2cad352
GL
98Initializes a file stream in write-only mode using the file descriptor \it{fd}.
99
100\membersection{wxFileOutputStream::\destruct{wxFileOutputStream}}
4dba84be
JS
101
102\func{}{\destruct{wxFileOutputStream}}{\void}
e2cad352
GL
103
104Destructor.
105
106\membersection{wxFileOutputStream::Ok}
4dba84be 107
e2cad352
GL
108\constfunc{bool}{Ok}{\void}
109
110Returns TRUE if the stream is initialized and ready.
111
112% -----------------------------------------------------------------------------
113% wxFileStream
114% -----------------------------------------------------------------------------
115\section{\class{wxFileStream}}
116
117\wxheading{Derived from}
118
119\helpref{wxFileOutputStream}{wxFileOutputStream}, \helpref{wxFileInputStream}{wxfileinputstream}
120
954b8ae6
JS
121\wxheading{Include files}
122
123<wx/wfstream.h>
124
e2cad352
GL
125\wxheading{See also}
126
127\helpref{wxStreamBuffer}{wxstreamBuffer}
128
129\latexignore{\rtfignore{\wxheading{Members}}}
130
131\membersection{wxFileStream::wxFileStream}
132
4dba84be 133\func{}{wxFileStream}{\param{const wxString\&}{ iofileName}}
e2cad352 134
4dba84be 135Initializes a new file stream in read-write mode using the specified
e2cad352
GL
136\it{iofilename} name.
137