1 % -----------------------------------------------------------------------------
3 % -----------------------------------------------------------------------------
4 \section{\class{wxFileInputStream
}}\label{wxfileinputstream
}
6 This classes represent data streams to and 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
}
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 \wxheading{Derived from
}
63 \helpref{wxOutputStream
}{wxoutputstream
}
65 \wxheading{Include files
}
71 \helpref{wxStreamBuffer
}{wxstreamBuffer
}
76 \latexignore{\rtfignore{\wxheading{Members
}}}
78 \membersection{wxFileOutputStream::wxFileOutputStream
}
80 \func{}{wxFileOutputStream
}{\param{const wxString\&
}{ ofileName
}}
82 Creates a new file with
\it{ofilename
} name and initializes the stream in
85 \func{}{wxFileOutputStream
}{\param{wxFile\&
}{ file
}}
87 Initializes a file stream in write-only mode using the file I/O object
\it{file
}.
89 \func{}{wxFileOutputStream
}{\param{int
}{ fd
}}
91 Initializes a file stream in write-only mode using the file descriptor
\it{fd
}.
93 \membersection{wxFileOutputStream::
\destruct{wxFileOutputStream
}}
95 \func{}{\destruct{wxFileOutputStream
}}{\void}
99 \membersection{wxFileOutputStream::Ok
}
101 \constfunc{bool
}{Ok
}{\void}
103 Returns TRUE if the stream is initialized and ready.
105 % -----------------------------------------------------------------------------
107 % -----------------------------------------------------------------------------
108 \section{\class{wxFileStream
}}
110 \wxheading{Derived from
}
112 \helpref{wxFileOutputStream
}{wxFileOutputStream
},
\helpref{wxFileInputStream
}{wxfileinputstream
}
114 \wxheading{Include files
}
120 \helpref{wxStreamBuffer
}{wxstreamBuffer
}
122 \latexignore{\rtfignore{\wxheading{Members
}}}
124 \membersection{wxFileStream::wxFileStream
}
126 \func{}{wxFileStream
}{\param{const wxString\&
}{ iofileName
}}
128 Initializes a new file stream in read-write mode using the specified
129 \it{iofilename
} name.