public static Delete ( string file ) : bool | ||
file | string | |
Résultat | bool |
public static bool Delete(string file)
{
if (File.Exists(file))
{
File.Delete(file);
if (!File.Exists(file)) return true;
}
return false;
}