Skip to content

Amiir25/PLP-Python_file_and_exception_handling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

File Handling & Exception Handling Assignment

This project demonstrates how to work with files and handle errors in Python.
It covers two parts:

  1. Reading a file and writing a modified version to a new file.
  2. Handling errors if the file doesn’t exist or can’t be read.

Task Description

1. File Read & Write Challenge

  • Ask the user for a filename.
  • Read the content of the file.
  • Modify the content (in this example, convert all text to uppercase).
  • Write the modified content to a new file named modified_<original_filename>.

2. Error Handling Lab

  • Handle errors if:
    • The file does not exist.
    • The program does not have permission to read the file.
    • Any unexpected error occurs.

Programming Language

  • Python

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages