Function todo_lib::todo::archive [−][src]
pub fn archive(tasks: &TaskSlice, filename: &Path) -> Result<(), TodoError>
Expand description
Appends todos to a file. If file does not exist it is created.
tasks
- todo list to append to the filefilename
- the name of the file to save the data (usually it isdone.txt
)
Returns true if all todos are saved successfully