]> git.saurik.com Git - wxWidgets.git/blame - docs/latex/wx/ffilestr.tex
typo fix
[wxWidgets.git] / docs / latex / wx / ffilestr.tex
CommitLineData
842d6c94
RR
1% -----------------------------------------------------------------------------
2% wxFFileInputStream
3% -----------------------------------------------------------------------------
4\section{\class{wxFFileInputStream}}\label{wxffileinputstream}
5
6This class represents data read in from a file. There are actually
fa482912 7two such groups of classes: this one is based on \helpref{wxFFile}{wxffile}
842d6c94
RR
8whereas \helpref{wxFileInputStream}{wxfileinputstream} is based in
9the \helpref{wxFile}{wxfile} class.
10
bf085665 11Note that \helpref{SeekI()}{wxinputstreamseeki}
a84e46f2
VS
12can seek beyond the end of the stream (file) and will thus not return
13{\it wxInvalidOffset} for that.
842d6c94
RR
14
15\wxheading{Derived from}
16
17\helpref{wxInputStream}{wxinputstream}
18
19\wxheading{Include files}
20
21<wx/wfstream.h>
22
a7af285d
VZ
23\wxheading{Library}
24
25\helpref{wxBase}{librarieslist}
26
842d6c94
RR
27\wxheading{See also}
28
29\helpref{wxBufferedInputStream}{wxbufferedinputstream}, \helpref{wxFFileOutputStream}{wxffileoutputstream}, \helpref{wxFileOutputStream}{wxfileoutputstream}
30
31% ----------
32% Members
33% ----------
34\latexignore{\rtfignore{\wxheading{Members}}}
35
b236c10f 36\membersection{wxFFileInputStream::wxFFileInputStream}\label{wxffileinputstreamctor}
842d6c94 37
dc65c743 38\func{}{wxFFileInputStream}{\param{const wxString\&}{ filename}, \param{const wxString\&}{ mode = "rb"}}
842d6c94 39
5fec5bb6 40Opens the specified file using its {\it filename} name using the specified mode.
842d6c94
RR
41
42\func{}{wxFFileInputStream}{\param{wxFFile\&}{ file}}
43
44Initializes a file stream in read-only mode using the file I/O object {\it file}.
45
46\func{}{wxFFileInputStream}{\param{FILE *}{ fp}}
47
48Initializes a file stream in read-only mode using the specified file pointer {\it fp}.
49
b236c10f 50\membersection{wxFFileInputStream::\destruct{wxFFileInputStream}}\label{wxffileinputstreamdtor}
842d6c94
RR
51
52\func{}{\destruct{wxFFileInputStream}}{\void}
53
54Destructor.
55
b7cacb43 56\membersection{wxFFileInputStream::IsOk}\label{wxffileinputstreamisok}
842d6c94 57
b7cacb43 58\constfunc{bool}{IsOk}{\void}
842d6c94 59
cc81d32f 60Returns true if the stream is initialized and ready.
842d6c94
RR
61
62% -----------------------------------------------------------------------------
63% wxFFileOutputStream
64% -----------------------------------------------------------------------------
65\section{\class{wxFFileOutputStream}}\label{wxffileoutputstream}
66
67This class represents data written to a file. There are actually
fa482912 68two such groups of classes: this one is based on \helpref{wxFFile}{wxffile}
842d6c94
RR
69whereas \helpref{wxFileInputStream}{wxffileinputstream} is based in
70the \helpref{wxFile}{wxfile} class.
71
bf085665 72Note that \helpref{SeekO()}{wxoutputstreamseeko}
a84e46f2
VS
73can seek beyond the end of the stream (file) and will thus not return
74{\it wxInvalidOffset} for that.
842d6c94
RR
75
76\wxheading{Derived from}
77
78\helpref{wxOutputStream}{wxoutputstream}
79
80\wxheading{Include files}
81
82<wx/wfstream.h>
83
a7af285d
VZ
84\wxheading{Library}
85
86\helpref{wxBase}{librarieslist}
87
842d6c94
RR
88\wxheading{See also}
89
90\helpref{wxBufferedOutputStream}{wxbufferedoutputstream}, \helpref{wxFFileInputStream}{wxffileinputstream}, \helpref{wxFileInputStream}{wxfileinputstream}
91
92% ----------
93% Members
94% ----------
95\latexignore{\rtfignore{\wxheading{Members}}}
96
b236c10f 97\membersection{wxFFileOutputStream::wxFFileOutputStream}\label{wxffileoutputstreamctor}
842d6c94 98
dc65c743 99\func{}{wxFFileOutputStream}{\param{const wxString\&}{ filename}, \param{const wxString\&}{ mode="w+b"}}
842d6c94 100
5fec5bb6 101Opens the file with the given {\it filename} name in the specified mode.
842d6c94
RR
102
103\func{}{wxFFileOutputStream}{\param{wxFFile\&}{ file}}
104
105Initializes a file stream in write-only mode using the file I/O object {\it file}.
106
107\func{}{wxFFileOutputStream}{\param{FILE *}{ fp}}
108
109Initializes a file stream in write-only mode using the file descriptor {\it fp}.
110
b236c10f 111\membersection{wxFFileOutputStream::\destruct{wxFFileOutputStream}}\label{wxffileoutputstreamdtor}
842d6c94
RR
112
113\func{}{\destruct{wxFFileOutputStream}}{\void}
114
115Destructor.
116
b7cacb43 117\membersection{wxFFileOutputStream::IsOk}\label{wxffileoutputstreamisok}
842d6c94 118
b7cacb43 119\constfunc{bool}{IsOk}{\void}
842d6c94 120
cc81d32f 121Returns true if the stream is initialized and ready.
842d6c94
RR
122
123% -----------------------------------------------------------------------------
124% wxFFileStream
125% -----------------------------------------------------------------------------
569ef72a 126\section{\class{wxFFileStream}}\label{wxffilestream}
842d6c94
RR
127
128\wxheading{Derived from}
129
c0ffb626 130\helpref{wxFFileOutputStream}{wxffileoutputstream}, \helpref{wxFFileInputStream}{wxffileinputstream}
842d6c94
RR
131
132\wxheading{Include files}
133
134<wx/wfstream.h>
135
a7af285d
VZ
136\wxheading{Library}
137
138\helpref{wxBase}{librarieslist}
139
842d6c94
RR
140\wxheading{See also}
141
c0ffb626 142\helpref{wxStreamBuffer}{wxstreambuffer}
842d6c94
RR
143
144\latexignore{\rtfignore{\wxheading{Members}}}
145
b236c10f 146\membersection{wxFFileStream::wxFFileStream}\label{wxffilestreamctor}
842d6c94
RR
147
148\func{}{wxFFileStream}{\param{const wxString\&}{ iofileName}}
149
150Initializes a new file stream in read-write mode using the specified
605d715d 151{\it iofilename} name.
842d6c94
RR
152
153