1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxFFileInputStream
}}\label{wxffileinputstream
}
6 This class represents data read in from a file. There are actually
7 two such groups of classes: this one is based on
\helpref{wxFFile
}{wxffile
}
8 whereas
\helpref{wxFileInputStream
}{wxfileinputstream
} is based in
9 the
\helpref{wxFile
}{wxfile
} class.
11 Note that
\helpref{wxFile
}{wxfile
} and
\helpref{wxFFile
}{wxffile
} differ
12 in one aspect, namely when to
report that the end of the file has been
13 reached. This is documented in
\helpref{wxFile::Eof
}{wxfileeof
} and
14 \helpref{wxFFile::Eof
}{wxffileeof
} and the behaviour of the stream
15 classes reflects this difference, i.e. wxFileInputStream will
report
16 wxSTREAM
\_EOF after having read the last byte whereas wxFFileInputStream
17 will
report wxSTREAM
\_EOF after trying to read
{\it past
} the last byte.
19 \wxheading{Derived from
}
21 \helpref{wxInputStream
}{wxinputstream
}
23 \wxheading{Include files
}
29 \helpref{wxBufferedInputStream
}{wxbufferedinputstream
},
\helpref{wxFFileOutputStream
}{wxffileoutputstream
},
\helpref{wxFileOutputStream
}{wxfileoutputstream
}
34 \latexignore{\rtfignore{\wxheading{Members
}}}
36 \membersection{wxFFileInputStream::wxFFileInputStream
}
38 \func{}{wxFFileInputStream
}{\param{const wxString\&
}{ ifileName
}}
40 Opens the specified file using its
{\it ifilename
} name in read-only mode.
42 \func{}{wxFFileInputStream
}{\param{wxFFile\&
}{ file
}}
44 Initializes a file stream in read-only mode using the file I/O object
{\it file
}.
46 \func{}{wxFFileInputStream
}{\param{FILE *
}{ fp
}}
48 Initializes a file stream in read-only mode using the specified file pointer
{\it fp
}.
50 \membersection{wxFFileInputStream::
\destruct{wxFFileInputStream
}}
52 \func{}{\destruct{wxFFileInputStream
}}{\void}
56 \membersection{wxFFileInputStream::Ok
}
58 \constfunc{bool
}{Ok
}{\void}
60 Returns TRUE if the stream is initialized and ready.
62 % -----------------------------------------------------------------------------
64 % -----------------------------------------------------------------------------
65 \section{\class{wxFFileOutputStream
}}\label{wxffileoutputstream
}
67 This class represents data written to a file. There are actually
68 two such groups of classes: this one is based on
\helpref{wxFFile
}{wxffile
}
69 whereas
\helpref{wxFileInputStream
}{wxffileinputstream
} is based in
70 the
\helpref{wxFile
}{wxfile
} class.
72 Note that
\helpref{wxFile
}{wxfile
} and
\helpref{wxFFile
}{wxffile
} differ
73 in one aspect, namely when to
report that the end of the file has been
74 reached. This is documented in
\helpref{wxFile::Eof
}{wxfileeof
} and
75 \helpref{wxFFile::Eof
}{wxffileeof
} and the behaviour of the stream
76 classes reflects this difference, i.e. wxFileInputStream will
report
77 wxSTREAM
\_EOF after having read the last byte whereas wxFFileInputStream
78 will
report wxSTREAM
\_EOF after trying to read
{\it past
} the last byte.
80 \wxheading{Derived from
}
82 \helpref{wxOutputStream
}{wxoutputstream
}
84 \wxheading{Include files
}
90 \helpref{wxBufferedOutputStream
}{wxbufferedoutputstream
},
\helpref{wxFFileInputStream
}{wxffileinputstream
},
\helpref{wxFileInputStream
}{wxfileinputstream
}
95 \latexignore{\rtfignore{\wxheading{Members
}}}
97 \membersection{wxFFileOutputStream::wxFFileOutputStream
}
99 \func{}{wxFFileOutputStream
}{\param{const wxString\&
}{ ofileName
}}
101 Creates a new file with
{\it ofilename
} name and initializes the stream in
104 \func{}{wxFFileOutputStream
}{\param{wxFFile\&
}{ file
}}
106 Initializes a file stream in write-only mode using the file I/O object
{\it file
}.
108 \func{}{wxFFileOutputStream
}{\param{FILE *
}{ fp
}}
110 Initializes a file stream in write-only mode using the file descriptor
{\it fp
}.
112 \membersection{wxFFileOutputStream::
\destruct{wxFFileOutputStream
}}
114 \func{}{\destruct{wxFFileOutputStream
}}{\void}
118 \membersection{wxFFileOutputStream::Ok
}
120 \constfunc{bool
}{Ok
}{\void}
122 Returns TRUE if the stream is initialized and ready.
124 % -----------------------------------------------------------------------------
126 % -----------------------------------------------------------------------------
127 \section{\class{wxFFileStream
}}
129 \wxheading{Derived from
}
131 \helpref{wxFFileOutputStream
}{wxffileoutputstream
},
\helpref{wxFFileInputStream
}{wxffileinputstream
}
133 \wxheading{Include files
}
139 \helpref{wxStreamBuffer
}{wxstreambuffer
}
141 \latexignore{\rtfignore{\wxheading{Members
}}}
143 \membersection{wxFFileStream::wxFFileStream
}
145 \func{}{wxFFileStream
}{\param{const wxString\&
}{ iofileName
}}
147 Initializes a new file stream in read-write mode using the specified
148 {\it iofilename
} name.