Пример #1
0
        public void OutputTest()
        {
            var list = ParsingTest();

            var writer = new StreamWriter("todo_output.txt")
            {
                AutoFlush = true
            };

            foreach (var item in list)
            {
                writer.WriteLine(TodoTxt.GenerateTodoLine(item));
            }
        }
Пример #2
0
 private void SaveTodo()
 {
     using (var file = File.Create(mainFileData.FullName))
     {
         var writer = new StreamWriter(file)
         {
             AutoFlush = true
         };
         foreach (var item in main)
         {
             writer.WriteLine(TodoTxt.GenerateTodoLine(item));
         }
     }
 }
Пример #3
0
 public string TodoLine()
 {
     return(TodoTxt.GenerateTodoLine(this));
 }