This is a console-based To-Do List application implemented in Java. The application allows users to manage their tasks by adding, marking as completed, and deleting tasks. Additionally, the To-Do List supports file I/O, enabling users to save their tasks to a text file and load them back later.
- Add tasks to your to-do list.
- Mark tasks as completed.
- Delete tasks from your list.
- Save tasks to a text file.
- Load tasks from a text file.
- Clone the repository to your local machine.
- Compile the Java file:
javac TodoList.java
- Run the program:
java TodoList
- Follow the on-screen instructions to manage your to-do list.
- Tasks will be automatically saved to
tasks.txt
when you exit the program and loaded back when you start the program.
-
Saving Tasks:
- Tasks are saved to the
tasks.txt
file in the same directory as the application. - When you choose to exit the application, tasks are automatically saved to the file.
- Tasks are saved to the
-
Loading Tasks:
- Tasks are loaded from the
tasks.txt
file when you start the application. - If the file doesn't exist or there is an error loading tasks, the application will start with an empty to-do list.
- Tasks are loaded from the
Firstly tasks.txt is empty
Add task
Now we can see that task is uploaded to tasks.text file
Mark task as completed
And delete task