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).
Build a basic and user-friendly command-line task manager using:
- Python Lists
- File Handling (
read,write) - Console-based Input/Output
cli-todo/
β
βββ todo.py # Main application script
βββ tasks.txt # Stores tasks (created at runtime)
βββ README.md # Documentation
- β Add new tasks
- π View all current tasks
- ποΈ Remove completed/unwanted tasks
- πΎ Tasks are saved automatically to
tasks.txt
git clone https://github.com/dipesh22104114/cli-todo-list
cd cli-todopython todo.pyRequires Python 3.x installed on your system.
π 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.
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
This file is automatically created and updated.
Each task is saved as a new line in the file for persistence between runs.
Dipesh Sahani
Email: [email protected]
This project is licensed under the MIT License.
Feel free to fork, open issues, or suggest improvements!