Skip to content

SumanGouda/Python-file-handling-practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

5 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ—‚๏ธ Python File Handling Project

This project demonstrates basic file handling operations in Python. It includes beginner-friendly scripts to help understand reading, writing, updating, and deleting text data from files.

๐Ÿ“‚ Project Files

  • File Handling.py โ€“ Basic read and write operations.
  • To-Do List Project.py โ€“ Create and manage a simple to-do list saved in a text file.
  • Find and Replace Project.py โ€“ Replace specific words in a file with user input.
  • Exception Handling.py โ€“ Safely handle user input and errors while working with files.
  • Bio-Data.txt โ€“ A sample file storing user bio-data from an input script.

๐Ÿ› ๏ธ Features

  • Accept user input and save to a text file
  • Read and display file content
  • Find and replace specific words
  • Mark tasks as completed by removing lines
  • Handle invalid inputs using exception handling

๐Ÿงช How to Run

  1. Make sure Python 3 is installed.
  2. Clone the repository or download the project files.
  3. Run any .py script from the terminal or an IDE like VS Code:

python "File Handling.py"

What I Learned Opening files in different modes (r, w, a)

Reading and writing line-by-line

Using with open() for safe file access

Using try-except blocks to catch input and file errors

Author - Suman Gouda

License This project is open-source and free to use.


You can modify the titles, emojis, and bullet points as per your style.
Would you like me to help you generate this file and add it to your project?

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages