Skip to content

kevinndede2000/week4python

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

File Processing with Error Handling (Python)

This project demonstrates file handling in Python, including:

  • Reading from a user-specified file
  • Modifying its contents (by reversing each line)
  • Writing the modified output into a new file
  • Handling common file-related errors gracefully

πŸ“Œ Features

  • βœ… Reads a text file from user input
  • βœ… Reverses each line of text
  • βœ… Saves the modified content into a new file
  • βœ… Prevents accidental overwrites by asking for confirmation
  • βœ… Error handling for:
    • Missing files
    • I/O issues
    • Unexpected runtime errors

πŸš€ Usage

  1. Clone this repository:
    git clone https://github.com/yourusername/week4-file-structure.git
    cd week4-file-structure

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages