back to io 

Global Functions

generated from ../src/mod_io/fn.cpp

A list of global IO functions

Constants

Methods

wxConcatFiles

wxConcatFiles(File1, 
              File2, 
              File3) : Boolean
 
Name Type Default Description
File1 String
File2 String
File3 String

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

wxCopyFile

wxCopyFile(SourceFile, 
           TargetFile, 
           Overwrite = true) : Boolean
 
Name Type Default Description
SourceFile String
TargetFile String
Overwrite Boolean true

Copies SourceFile to TargetFile, returning true if successful. If overwrite parameter is true (default), the destination file is overwritten if it exists, but if overwrite is false, the functions fails in this case.

wxDirExists

wxDirExists(Dir) : Boolean
 
Name Type Default Description
Dir String

Returns true if the directory exists

wxExecute

wxExecute(Cmd, 
          Flags = wxExecFlag.ASYNC, 
          Process = null) : Integer
 
Name Type Default Description
Cmd String
Flags wxExecFlag wxExecFlag.ASYNC
Process wxProcess null
wxExecute(Argv, 
          Flags = wxExecFlag.ASYNC, 
          Process = null) : Integer
 
Name Type Default Description
Argv Array String
Flags wxExecFlag wxExecFlag.ASYNC
Process wxProcess null
wxExecute(Cmd, 
          Output, 
          Flags = wxExecFlag.ASYNC) : Integer
 
Name Type Default Description
Cmd String
Output Array String
Flags wxExecFlag wxExecFlag.ASYNC
wxExecute(Cmd, 
          Output, 
          Errors, 
          Flags = wxExecFlag.ASYNC) : Integer
 
Name Type Default Description
Cmd String
Output Array String
Errors Array String
Flags wxExecFlag wxExecFlag.ASYNC

wxFileExists

wxFileExists(File) : Boolean
 
Name Type Default Description
File String

Returns true if the file exists.

wxGetCwd

wxGetCwd() : String
 

Returns a string containing the current (or working) directory.

wxGetFreeDiskSpace

wxGetFreeDiskSpace(File) : Double
 
Name Type Default Description
File String

Returns the free diskspace. Returns -1 if the path doesn't exist. Unlike wxWidgets, which implements this function as wxGetDiskSpace, wxJS has to separate this into two functions.

wxGetOSDirectory

wxGetOSDirectory() : String
 

Returns the Windows directory under Windows; on other platforms returns the empty string.

wxGetTotalDiskSpace

wxGetTotalDiskSpace(File) : Double
 
Name Type Default Description
File String

Returns the free diskspace. Returns -1 if the path doesn't exist. Unlike wxWidgets, which implements this function as wxGetDiskSpace, wxJS has to separate this into two functions.

wxIsAbsolutePath

wxIsAbsolutePath(File) : Boolean
 
Name Type Default Description
File String

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

wxIsWild

wxIsWild(Pattern) : Boolean
 
Name Type Default Description
Pattern String

Returns true if the pattern contains wildcards.

wxMatchWild

wxMatchWild(Pattern, 
            Text, 
            DotSpecial) : Boolean
 
Name Type Default Description
Pattern String
Text String
DotSpecial Boolean

Returns true if the pattern matches the text; if DotSpecial is true, filenames beginning with a dot are not matched with wildcard characters.

wxMkDir

wxMkDir(Dir, 
        Perm = 0777) : Boolean
 
Name Type Default Description
Dir String
Perm Integer 0777

Makes the directory dir, returning true if successful. perm is the access mask for the directory for the systems on which it is supported (Unix) and doesn't have effect for the other ones.

wxRemoveFile

wxRemoveFile(File) : Boolean
 
Name Type Default Description
File String

Removes the file, return true on success.

wxRenameFile

wxRenameFile(From, 
             To) : Boolean
 
Name Type Default Description
From String
To String

Renames the file From to To, returning true if successful.

wxRmDir

wxRmDir(Dir) : Integer
 
Name Type Default Description
Dir String

Removes the directory. Returns true on success.

wxSetWorkingDirectory

wxSetWorkingDirectory(Dir) : Boolean
 
Name Type Default Description
Dir String

Sets the current working directory, returning true if the operation succeeded. Under MS Windows, the current drive is also changed if dir contains a drive specification.

wxShell

wxShell(Cmd) : Boolean
 
Name Type Default Description
Cmd String

Executes a command in an interactive shell window. If no command is specified, then just the shell is spawned.




Design downloaded from Zeroweb.org: Free website templates, layouts, and tools.