Skip to content

dipesh22104114/cli-todo-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

βœ… CLI To-Do List Application (Python)

A simple command-line To-Do List manager built in Python.
This lightweight app lets you add, view, and remove your tasks using a terminal interface, and stores your data persistently in a local file (tasks.txt).


πŸ“Œ Objective

Build a basic and user-friendly command-line task manager using:

  • Python Lists
  • File Handling (read, write)
  • Console-based Input/Output

πŸ“‚ Project Structure

cli-todo/
β”‚
β”œβ”€β”€ todo.py        # Main application script
β”œβ”€β”€ tasks.txt      # Stores tasks (created at runtime)
└── README.md      # Documentation

πŸ’‘ Features

  • βœ… Add new tasks
  • πŸ“‹ View all current tasks
  • πŸ—‘οΈ Remove completed/unwanted tasks
  • πŸ’Ύ Tasks are saved automatically to tasks.txt

πŸ”§ How to Run

1. Clone the Repository

git clone https://github.com/dipesh22104114/cli-todo-list
cd cli-todo

2. Run the App

python todo.py

Requires Python 3.x installed on your system.


πŸ§ͺ Sample Usage

πŸ“‹ To-Do List Application
1. View Tasks
2. Add Task
3. Remove Task
4. Exit
Choose an option (1-4): 2
Enter new task: Complete assignment
βœ… Task added.

🧠 Key Concepts Used

  • os.path.exists() for file presence checking
  • File handling using open() in read/write modes
  • Python lists and string manipulation
  • Exception handling for user input
  • Loops and functions for modularity

πŸ“œ tasks.txt – Task Storage

This file is automatically created and updated.
Each task is saved as a new line in the file for persistence between runs.


πŸ‘¨β€πŸ’» Author

Dipesh Sahani
Email: [email protected]


πŸ“ License

This project is licensed under the MIT License.


πŸ’¬ Suggestions or Contributions?

Feel free to fork, open issues, or suggest improvements!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages