public bool WritePath(string path, string contents) { try { using (var file = new StreamWriter(path)) { file.WriteLine(contents); } return true; } catch (Exception ex) { Logger.Log("Could Not Write " + path + " " + ex.Message); return false; } }