Skip to content

unnatipatel22/File-Handler

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 

Repository files navigation

File-Handler

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.


โœจ Features

  • ๐Ÿ“„ 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.

๐Ÿ›  Technologies Used

  • Python 3
  • os
  • shutil
  • re
  • datetime

๐Ÿ“‚ Project Structure

Python-File-Handler/
โ”‚
โ”œโ”€โ”€ file_handler.py
โ””โ”€โ”€ README.md

๐Ÿš€ Installation

Clone the repository

git clone https://github.com/unnatipatel22/Python-File-Handler.git

Move into the project directory

cd Python-File-Handler

Run the application

python file_handler.py

๐Ÿ’ก How It Works

  1. Launch the application.
  2. Choose an operation from the menu.
  3. Create or open a text file.
  4. Perform actions like searching, replacing, appending, deleting, or analyzing text.
  5. The application automatically creates a backup before making changes.
  6. View operation history and file statistics whenever required.

๐Ÿ“š Concepts Practiced

  • File Handling
  • Object-Oriented Programming (OOP)
  • Functions
  • Loops
  • Conditional Statements
  • Regular Expressions (Regex)
  • Exception Handling
  • String Processing
  • Lists and Dictionaries
  • User Input Validation

๐ŸŽฏ Learning Outcomes

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.


๐Ÿ”ฎ Future Improvements

  • Graphical User Interface (Tkinter)
  • Undo and Redo functionality
  • File encryption
  • PDF and DOCX support
  • Folder explorer
  • Export reports

๐Ÿ‘ฉโ€๐Ÿ’ป Author

Unnati Patel

GitHub: https://github.com/unnatipatel22


โญ If you found this project useful, consider giving it a star!

About

A Python application for performing various file handling operations efficiently.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages