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)); } }
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)); } } }
public string TodoLine() { return(TodoTxt.GenerateTodoLine(this)); }