Skip to content

Ursula-Mtshweni/Python_week4

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

3 Commits
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

๐Ÿ–‹๏ธ File Handling & Error Handling Lab in Python

This beginner-friendly project showcases file reading/writing and comprehensive error handling in Python. ๐Ÿฅ‡

Features ๐ŸŽ‰๐ŸŽ‰

  • Adds line numbers and word count
  • Transforms keywords to uppercase (python, file, error)
  • Appends header and footer with timestamps
  • Safe file operations with utf-8 encoding ๐Ÿ“„
  • Interactive menu to test errors: โš ๏ธ
    • FileNotFoundError
    • PermissionError
    • UnicodeDecodeError
    • IsADirectoryError

๐ŸงชProvide an interactive menu for testing the functionality or exiting.๐Ÿงช

Usage ๐Ÿพ

Run the program using:

python file_processor.py

About

File Handling

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages