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