1 \section{\class{wxFileInputStream
}}\label{wxfileinputstream
}
3 This class represents data read in from a file. There are actually
4 two such groups of classes: this one is based on
\helpref{wxFile
}{wxfile
}
5 whereas
\helpref{wxFFileInputStream
}{wxffileinputstream
} is based in
6 the
\helpref{wxFFile
}{wxffile
} class.
8 Note that
\helpref{wxFile
}{wxfile
} and
\helpref{wxFFile
}{wxffile
} differ
9 in one aspect, namely when to
report that the end of the file has been
10 reached. This is documented in
\helpref{wxFile::Eof
}{wxfileeof
} and
11 \helpref{wxFFile::Eof
}{wxffileeof
} and the behaviour of the stream
12 classes reflects this difference, i.e. wxFileInputStream will
report
13 wxSTREAM
\_EOF after having read the last byte whereas wxFFileInputStream
14 will
report wxSTREAM
\_EOF after trying to read
{\it past
} the last byte.
16 \wxheading{Derived from
}
18 \helpref{wxInputStream
}{wxinputstream
}
20 \wxheading{Include files
}
26 \helpref{wxBufferedInputStream
}{wxbufferedinputstream
},
\helpref{wxFileOutputStream
}{wxfileoutputstream
},
\helpref{wxFFileOutputStream
}{wxffileoutputstream
}
31 \latexignore{\rtfignore{\wxheading{Members
}}}
33 \membersection{wxFileInputStream::wxFileInputStream
}
35 \func{}{wxFileInputStream
}{\param{const wxString\&
}{ ifileName
}}
37 Opens the specified file using its
{\it ifilename
} name in read-only mode.
39 \func{}{wxFileInputStream
}{\param{wxFile\&
}{ file
}}
41 Initializes a file stream in read-only mode using the file I/O object
{\it file
}.
43 \func{}{wxFileInputStream
}{\param{int
}{ fd
}}
45 Initializes a file stream in read-only mode using the specified file descriptor.
47 \membersection{wxFileInputStream::
\destruct{wxFileInputStream
}}
49 \func{}{\destruct{wxFileInputStream
}}{\void}
53 \membersection{wxFileInputStream::Ok
}
55 \constfunc{bool
}{Ok
}{\void}
57 Returns TRUE if the stream is initialized and ready.
59 % -----------------------------------------------------------------------------
61 % -----------------------------------------------------------------------------
62 \section{\class{wxFileOutputStream
}}\label{wxfileoutputstream
}
64 This class represents data written to a file. There are actually
65 two such groups of classes: this one is based on
\helpref{wxFile
}{wxfile
}
66 whereas
\helpref{wxFFileInputStream
}{wxffileinputstream
} is based in
67 the
\helpref{wxFFile
}{wxffile
} class.
69 Note that
\helpref{wxFile
}{wxfile
} and
\helpref{wxFFile
}{wxffile
} differ
70 in one aspect, namely when to
report that the end of the file has been
71 reached. This is documented in
\helpref{wxFile::Eof
}{wxfileeof
} and
72 \helpref{wxFFile::Eof
}{wxffileeof
} and the behaviour of the stream
73 classes reflects this difference, i.e. wxFileInputStream will
report
74 wxSTREAM
\_EOF after having read the last byte whereas wxFFileInputStream
75 will
report wxSTREAM
\_EOF after trying to read
{\it past
} the last byte.
77 \wxheading{Derived from
}
79 \helpref{wxOutputStream
}{wxoutputstream
}
81 \wxheading{Include files
}
87 \helpref{wxBufferedOutputStream
}{wxbufferedoutputstream
},
\helpref{wxFileInputStream
}{wxfileinputstream
},
\helpref{wxFFileInputStream
}{wxffileinputstream
}
92 \latexignore{\rtfignore{\wxheading{Members
}}}
94 \membersection{wxFileOutputStream::wxFileOutputStream
}
96 \func{}{wxFileOutputStream
}{\param{const wxString\&
}{ ofileName
}}
98 Creates a new file with
{\it ofilename
} name and initializes the stream in
101 \func{}{wxFileOutputStream
}{\param{wxFile\&
}{ file
}}
103 Initializes a file stream in write-only mode using the file I/O object
{\it file
}.
105 \func{}{wxFileOutputStream
}{\param{int
}{ fd
}}
107 Initializes a file stream in write-only mode using the file descriptor
{\it fd
}.
109 \membersection{wxFileOutputStream::
\destruct{wxFileOutputStream
}}
111 \func{}{\destruct{wxFileOutputStream
}}{\void}
115 \membersection{wxFileOutputStream::Ok
}
117 \constfunc{bool
}{Ok
}{\void}
119 Returns TRUE if the stream is initialized and ready.
121 % -----------------------------------------------------------------------------
123 % -----------------------------------------------------------------------------
124 \section{\class{wxFileStream
}}
126 \wxheading{Derived from
}
128 \helpref{wxFileOutputStream
}{wxfileoutputstream
},
\helpref{wxFileInputStream
}{wxfileinputstream
}
130 \wxheading{Include files
}
136 \helpref{wxStreamBuffer
}{wxstreambuffer
}
138 \latexignore{\rtfignore{\wxheading{Members
}}}
140 \membersection{wxFileStream::wxFileStream
}
142 \func{}{wxFileStream
}{\param{const wxString\&
}{ iofileName
}}
144 Initializes a new file stream in read-write mode using the specified
145 {\it iofilename
} name.