1999-01-12 18:10:02 -05:00
|
|
|
\section{File classes and functions overview}\label{wxfileoverview}
|
|
|
|
|
1999-12-10 19:43:59 -05:00
|
|
|
Classes: \helpref{wxFile}{wxfile}, \helpref{wxDir}{wxdir}, \helpref{wxTempFile}{wxtempfile},
|
1999-01-12 18:10:02 -05:00
|
|
|
\helpref{wxTextFile}{wxtextfile}
|
|
|
|
|
|
|
|
Functions: see \helpref{file functions}{filefunctions}.
|
|
|
|
|
|
|
|
wxWindows provides some functions and classes to facilitate working with files.
|
|
|
|
As usual, the accent is put on cross-platform features which explains, for
|
|
|
|
example, the \helpref{wxTextFile}{wxtextfile} class which may be used to convert
|
|
|
|
between different types of text files (DOS/Unix/Mac).
|
|
|
|
|
2000-07-15 15:51:35 -04:00
|
|
|
wxFile may be used for low-level IO. It contains all the usual functions to work
|
|
|
|
with files (opening/closing, reading/writing, seeking, and so on) but compared with
|
|
|
|
using standard C functions, has error checking (in case of an error a message
|
1999-01-12 18:10:02 -05:00
|
|
|
is logged using \helpref{wxLog}{wxlog} facilities) and closes the file
|
2000-07-15 15:51:35 -04:00
|
|
|
automatically in the destructor which may be quite convenient.
|
1999-01-12 18:10:02 -05:00
|
|
|
|
|
|
|
wxTempFile is a very small file designed to make replacing the files contents
|
|
|
|
safer - see its \helpref{documentation}{wxtempfile} for more details.
|
|
|
|
|
|
|
|
wxTextFile is a general purpose class for working with small text files on line
|
|
|
|
by line basis. It is especially well suited for working with configuration files
|
|
|
|
and program source files. It can be also used to work with files with "non
|
|
|
|
native" line termination characters and write them as "native" files if needed
|
|
|
|
(in fact, the files may be written in any format).
|
1999-01-17 14:25:06 -05:00
|
|
|
|
1999-12-10 19:43:59 -05:00
|
|
|
wxDir is a helper class for enumerating the files or subdirectories of a
|
|
|
|
directory. It may be used to enumerate all files, only files satisfying the
|
|
|
|
given template mask or only non-hidden files.
|
2000-02-06 14:11:10 -05:00
|
|
|
|