| Previous | Next | |
STF.deleteFile(fileName:String) : BooleanfileName - Name (including the path) of the file to delete. If a fully qualified path is not specified, the working directory is used.
A boolean.; This value is returned as a parameter to the registered callback. See the example below or STF.registerCallBack() for more information on return variable handling.
Method; Deletes the specified file.
The following example deletes a file from the working directory.
var success:Boolean;
// callback function
onDeleteFileReturn = function(returnValue:Boolean) {
success = returnValue;
}
STF.registerCallBack("deleteFile", onDeleteFileReturn, this); // register callback function
STF.deleteFile("File.txt");STF.copyFile(), STF.createShortcut(), STF.downloadFile(), STF.listFiles(), STF.renameFile(), STF.getSpecialFolder()
| Questions or Feedback? | Previous | Next |