void FileDelete(string filename)
Removes specified file name. To get the detailed error information, call
GetLastError().
指定されたファイルを削除します。詳細なエラー情報を得るには、GetLastError() を呼び出してください。
Files can only be deleted if they are in the terminal_dir\experts\files
directory (terminal_directory\tester\files, in case of testing) or its
subdirectories.
ファイルが terminal_dir\experts\files ディレクトリ(テストの場合は terminal_directory\tester\files)か、そのサブディレクトリにあるものだけ、削除することができます。
Parameters:
パラメータ:
filename - Path to the file.
ファイルへのパス。
Sample:
サンプル:
// file my_table.csv will be deleted from terminal_dir\experts\files directory
int lastError;
FileDelete("my_table.csv");
lastError=GetLastError();
if(laseError!=ERR_NOERROR)
{
Print("An error ocurred while (",lastError,") deleting file my_table.csv");
return(0);
}
|