protected removeFile ( string FileName ) : bool | ||
FileName | string | |
Résultat | bool |
protected bool removeFile(string FileName)
{
bool Ret = false;
try
{
if (File.Exists(FileName) == false) { return true; }
File.Delete(FileName);
Ret = true;
}
catch (Exception) { throw; }
return Ret;
}