2008-02-18 19:04:03 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
2008-02-23 19:47:29 -05:00
|
|
|
// Name: file.h
|
2008-02-18 19:04:03 -05:00
|
|
|
// Purpose: topic overview
|
|
|
|
// Author: wxWidgets team
|
|
|
|
// RCS-ID: $Id$
|
2010-07-13 09:29:13 -04:00
|
|
|
// Licence: wxWindows licence
|
2008-02-18 19:04:03 -05:00
|
|
|
/////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
2008-03-12 04:50:42 -04:00
|
|
|
/**
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-03-22 13:49:09 -04:00
|
|
|
@page overview_file File Classes and Functions
|
2008-02-23 19:47:29 -05:00
|
|
|
|
2008-03-22 13:49:09 -04:00
|
|
|
Classes: wxFile, wxDir, wxTempFile, wxTextFile
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-03-25 03:57:30 -04:00
|
|
|
Functions: see @ref group_funcmacro_file.
|
2008-02-23 19:47:29 -05:00
|
|
|
|
2008-03-22 13:49:09 -04:00
|
|
|
wxWidgets 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 wxTextFile class which may be used to convert
|
|
|
|
between different types of text files (DOS/Unix/Mac).
|
2008-02-23 19:47:29 -05:00
|
|
|
|
2008-03-22 13:49:09 -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
|
|
|
|
is logged using wxLog facilities) and closes the file
|
|
|
|
automatically in the destructor which may be quite convenient.
|
2008-02-23 19:47:29 -05:00
|
|
|
|
2008-03-22 13:49:09 -04:00
|
|
|
wxTempFile is a very small file designed to make replacing the files contents
|
|
|
|
safer - see its documentation for more details.
|
2008-02-23 19:47:29 -05:00
|
|
|
|
2008-03-22 13:49:09 -04:00
|
|
|
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).
|
2008-02-23 19:47:29 -05:00
|
|
|
|
2008-03-22 13:49:09 -04: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.
|
2008-02-19 08:28:24 -05:00
|
|
|
|
2008-02-23 19:47:29 -05:00
|
|
|
*/
|
2008-02-19 08:28:24 -05:00
|
|
|
|