class Program { static void Main(string[] args) { string file=@"E: eadme.txt"; try { File.SetAttributes(file, FileAttributes.Normal); File.Delete(file); } catch (Exception exp) { Console.WriteLine(exp.Message); } Console.ReadLine(); } }
class Program { static void Main(string[] args) { string file=@"E: eadme.txt"; try { File.SetAttributes(file, FileAttributes.Normal); File.Delete(file); } catch (Exception exp) { Console.WriteLine(exp.Message); } Console.ReadLine(); } }