using System; using System.IO; using XeroBrowser.Properties; namespace XeroBrowser { public class FileChecker { public static void FolderCheck() { if (!Directory.Exists(Environment.GetEnvironmentVariable("appdata")+"/Xero Browser")) { Directory.CreateDirectory(Environment.GetEnvironmentVariable("appdata")+"/Xero Browser"); } } public static void FileCheck() { if (!File.Exists(Environment.GetEnvironmentVariable("appdata")+"/Xero Browser/prefrences.conf")) { File.WriteAllBytes(Environment.GetEnvironmentVariable("appdata")+"/Xero Browser/prefrences.conf", Resource1.prefrences_conf); } } } }