new way of writing to a file (OS.File)
todolist updated