Backup File
using System; using System.IO; public class IOHelper { public static void BackupFile(string fileName, string suffix) { if (File.Exists(fileName)) File.Copy(fileName, String.Concat(fileName, suffix), true); } }