Ejemplo n.º 1
0
 private void UpdateCommentFile(string file, string text)
 {
     file = file.Replace("_____", ".");
     TextFile.DeleteFile(file);
     TextFile.CreateFile(file);
     TextFile.AppendToFile(file, text);
 }
Ejemplo n.º 2
0
        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);
        }