1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxFileInputStream
}}\label{wxfileinputstream
}
6 This class represents data read in from a file. There are actually
7 two such groups of classes: those documented here, and another group called
8 wxFFileInputStream, wxFFileOutputStream and wxFFileStream which are not
9 based on file descriptors (and their wxWindows equivalent wxFile) but the
10 FILE* type (and wxFFile). Apart from the different constructor ("FILE *file"
11 instead if "int fd") their interface is identical.
13 \wxheading{Derived from
}
15 \helpref{wxInputStream
}{wxinputstream
}
17 \wxheading{Include files
}
23 \helpref{wxStreamBuffer
}{wxstreamBuffer
},
\helpref{wxFileOutputStream
}{wxfileoutputstream
}
28 \latexignore{\rtfignore{\wxheading{Members
}}}
30 \membersection{wxFileInputStream::wxFileInputStream
}
32 \func{}{wxFileInputStream
}{\param{const wxString\&
}{ ifileName
}}
34 Opens the specified file using its
\it{ifilename
} name in read-only mode.
36 \func{}{wxFileInputStream
}{\param{wxFile\&
}{ file
}}
38 Initializes a file stream in read-only mode using the file I/O object
\it{file
}.
40 \func{}{wxFileInputStream
}{\param{int
}{ fd
}}
42 Initializes a file stream in read-only mode using the specified file descriptor.
44 \membersection{wxFileInputStream::
\destruct{wxFileInputStream
}}
46 \func{}{\destruct{wxFileInputStream
}}{\void}
50 \membersection{wxFileInputStream::Ok
}
52 \constfunc{bool
}{Ok
}{\void}
54 Returns TRUE if the stream is initialized and ready.
56 % -----------------------------------------------------------------------------
58 % -----------------------------------------------------------------------------
59 \section{\class{wxFileOutputStream
}}\label{wxfileoutputstream
}
61 This class represents data written to a file. There are actually
62 two such groups of classes: those documented here, and another group called
63 wxFFileInputStream, wxFFileOutputStream and wxFFileStream which are not
64 based on file descriptors (and their wxWindows equivalent wxFile) but the
65 FILE* type (and wxFFile). Apart from the different constructor ("FILE *file"
66 instead if "int fd") their interface is identical.
68 \wxheading{Derived from
}
70 \helpref{wxOutputStream
}{wxoutputstream
}
72 \wxheading{Include files
}
78 \helpref{wxStreamBuffer
}{wxstreamBuffer
},
\helpref{wxFileInputStream
}{wxfileinputstream
}
83 \latexignore{\rtfignore{\wxheading{Members
}}}
85 \membersection{wxFileOutputStream::wxFileOutputStream
}
87 \func{}{wxFileOutputStream
}{\param{const wxString\&
}{ ofileName
}}
89 Creates a new file with
\it{ofilename
} name and initializes the stream in
92 \func{}{wxFileOutputStream
}{\param{wxFile\&
}{ file
}}
94 Initializes a file stream in write-only mode using the file I/O object
\it{file
}.
96 \func{}{wxFileOutputStream
}{\param{int
}{ fd
}}
98 Initializes a file stream in write-only mode using the file descriptor
\it{fd
}.
100 \membersection{wxFileOutputStream::
\destruct{wxFileOutputStream
}}
102 \func{}{\destruct{wxFileOutputStream
}}{\void}
106 \membersection{wxFileOutputStream::Ok
}
108 \constfunc{bool
}{Ok
}{\void}
110 Returns TRUE if the stream is initialized and ready.
112 % -----------------------------------------------------------------------------
114 % -----------------------------------------------------------------------------
115 \section{\class{wxFileStream
}}
117 \wxheading{Derived from
}
119 \helpref{wxFileOutputStream
}{wxFileOutputStream
},
\helpref{wxFileInputStream
}{wxfileinputstream
}
121 \wxheading{Include files
}
127 \helpref{wxStreamBuffer
}{wxstreamBuffer
}
129 \latexignore{\rtfignore{\wxheading{Members
}}}
131 \membersection{wxFileStream::wxFileStream
}
133 \func{}{wxFileStream
}{\param{const wxString\&
}{ iofileName
}}
135 Initializes a new file stream in read-write mode using the specified
136 \it{iofilename
} name.