Enable reading and writing to file

This commit is contained in:
2025-11-30 22:54:21 -05:00
parent dc32e2c26e
commit 89d4adc0e2

View File

@@ -14,7 +14,7 @@ class TodoManager:
return path.exists(self.filename)
def open_todo_file(self):
self.file = open(self.filename, "w")
self.file = open(self.filename, "r+")
return self.file
def read_todos(self) -> list[Todo]: