]> git.saurik.com Git - wxWidgets.git/blame_incremental - docs/latex/wx/tfile.tex
1. reset default item in ~wxWindow (better to be safe)
[wxWidgets.git] / docs / latex / wx / tfile.tex
... / ...
CommitLineData
1\section{File classes and functions overview}\label{wxfileoverview}
2
3Classes: \helpref{wxFile}{wxfile}, \helpref{wxDir}{wxdir}, \helpref{wxTempFile}{wxtempfile},
4\helpref{wxTextFile}{wxtextfile}
5
6Functions: see \helpref{file functions}{filefunctions}.
7
8wxWindows provides some functions and classes to facilitate working with files.
9As usual, the accent is put on cross-platform features which explains, for
10example, the \helpref{wxTextFile}{wxtextfile} class which may be used to convert
11between different types of text files (DOS/Unix/Mac).
12
13wxFile may be used for low-level IO. It contains all the usual functions to work
14with files (opening/closing, reading/writing, seeking, and so on) but compared with
15using standard C functions, has error checking (in case of an error a message
16is logged using \helpref{wxLog}{wxlog} facilities) and closes the file
17automatically in the destructor which may be quite convenient.
18
19wxTempFile is a very small file designed to make replacing the files contents
20safer - see its \helpref{documentation}{wxtempfile} for more details.
21
22wxTextFile is a general purpose class for working with small text files on line
23by line basis. It is especially well suited for working with configuration files
24and program source files. It can be also used to work with files with "non
25native" line termination characters and write them as "native" files if needed
26(in fact, the files may be written in any format).
27
28wxDir is a helper class for enumerating the files or subdirectories of a
29directory. It may be used to enumerate all files, only files satisfying the
30given template mask or only non-hidden files.
31