C# Code:
using System.IO;
string savedCardFilePath = "My absolute file path";
if (File.Exists(savedCardFilePath))
{
// Remove readonly attribute off of the file if it exists before execution
if (File.GetAttributes(savedCardFilePath) == FileAttributes.ReadOnly)
File.SetAttributes(savedCardFilePath, FileAttributes.Normal);
File.Delete(savedCardFilePath);
}
No comments:
Post a Comment