File functions

See also the wxPathList class.

::Dos2UnixFilename

voidDos2UnixFilenamechar *s

Converts a DOS to a UNIX filename by replacing backslashes with forward slashes.

::FileExists

BoolFileExistschar *filename

Returns TRUE if the file exists.

::FileNameFromPath

char *FileNameFromPathchar *path

Returns the filename for a full path (returns a new string).

::IsAbsolutePath

BoolIsAbsolutePathchar *filename

Returns TRUE if the argument is an absolute filename, i.e. with a slash or drive name at the beginning.

::PathOnly

char *PathOnlychar *path

Returns the directory part of the filename (returns a new string).

::Unix2DosFilename

voidUnix2DosFilenamechar *s

Converts a UNIX to a DOS filename by replacing forward slashes with backslashes.

::wxConcatFiles

BoolwxConcatFileschar *file1, char *file2, char *file3

Concatenates file1 and file2 to file3, returning TRUE if successful.

::wxCopyFile

BoolwxCopyFilechar *file1, char *file2

Copies file1 to file2, returning TRUE if successful.

::wxIsWild

BoolwxIsWildchar *pattern

Returns TRUE if the pattern contains wildcards. See wxMatchWild.

::wxMatchWild

BoolwxMatchWildchar *pattern, char *text, Bool dot_special

Returns TRUE if the pattern matches the text; if dot_special is TRUE, filenames beginning with a dot are not matched with wildcard characters. See wxIsWild.

::wxRemoveFile

BoolwxRemoveFilechar *file

Removes file, returning TRUE if successful.

::wxRenameFile

BoolwxRenameFilechar *file1, char *file2

Renames file1 to file2, returning TRUE if successful.