Skip to content

Latest commit

 

History

History
61 lines (35 loc) · 2.35 KB

README.md

File metadata and controls

61 lines (35 loc) · 2.35 KB

To-Do List Application with File I/O

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.

Features

  • 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.

How to Use

  1. Clone the repository to your local machine.
  2. Compile the Java file: javac TodoList.java
  3. Run the program: java TodoList
  4. Follow the on-screen instructions to manage your to-do list.
  5. Tasks will be automatically saved to tasks.txt when you exit the program and loaded back when you start the program.

File I/O Details

  • 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.
  • 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.

Screenshots

To-Do List Overview

Firstly tasks.txt is empty

empty tasks txt

Add task

To-Do List Add task

Now we can see that task is uploaded to tasks.text file

tasks txt added task

Mark task as completed

To-Do List Mark task

tasks txt complete task

And delete task

To-Do List Delete task

tasks txt delete task