A command-line file management application developed using Python. This project allows users to create, open, edit, search, and manage text files through an interactive terminal interface. It was built to strengthen Python programming fundamentals while practicing file handling, object-oriented programming, regular expressions, and exception handling.
- ๐ Create new text files.
- ๐ Open existing text files.
- ๐ View file content with line numbers.
- ๐ Find and replace text.
- ๐ Search text (case-sensitive and case-insensitive).
- โ Append text to existing files.
- ๐ Delete selected lines.
- ๐ Display word and character statistics.
- ๐ Show the most frequently used words.
- ๐พ Automatically create backups before editing.
- ๐ Maintain operation history.
- ๐จ Interactive command-line interface.
โ ๏ธ Error handling and input validation.
- Python 3
- os
- shutil
- re
- datetime
Python-File-Handler/
โ
โโโ file_handler.py
โโโ README.md
Clone the repository
git clone https://github.com/unnatipatel22/Python-File-Handler.gitMove into the project directory
cd Python-File-HandlerRun the application
python file_handler.py- Launch the application.
- Choose an operation from the menu.
- Create or open a text file.
- Perform actions like searching, replacing, appending, deleting, or analyzing text.
- The application automatically creates a backup before making changes.
- View operation history and file statistics whenever required.
- File Handling
- Object-Oriented Programming (OOP)
- Functions
- Loops
- Conditional Statements
- Regular Expressions (Regex)
- Exception Handling
- String Processing
- Lists and Dictionaries
- User Input Validation
This project helped strengthen Python programming by implementing a complete file handling application. It provided hands-on experience with file operations, object-oriented programming, regular expressions, backup management, exception handling, and writing modular, reusable code.
- Graphical User Interface (Tkinter)
- Undo and Redo functionality
- File encryption
- PDF and DOCX support
- Folder explorer
- Export reports
Unnati Patel
GitHub: https://github.com/unnatipatel22
โญ If you found this project useful, consider giving it a star!