Function todo_lib::todo::archive

source ·
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 file
  • filename - the name of the file to save the data (usually it is done.txt)

Returns true if all todos are saved successfully