private void UpdateCommentFile(string file, string text) { file = file.Replace("_____", "."); TextFile.DeleteFile(file); TextFile.CreateFile(file); TextFile.AppendToFile(file, text); }
public void DeleteDay(string day, string name, string category) { var path = string.Format("{0}{1}\\{2}\\", _imageRoot, category, day); name = name.Replace("_____", "."); TextFile.DeleteFile(path + name + ".txt"); System.IO.File.Delete(path + name); System.IO.File.Delete(path + "thumbnails\\" + name); }