This project demonstrates how to handle Python files by:
-
Reading the content of the file.
-
Modifying the content.
-
Writing the modified content into a new file
-
Handling errors if the file cannot be read.
-
Newfile.py # Main python code with functions
-
README.md # Project documentation.
Reads the file specified by input_filename.
Converts the content to uppercase.
Writes the modified content into output_filename.
Prompts the user for the file name.
Modify_file processes the file.
It then handles errors if the file does not exist or cannot be accessed.
Save your code in the python file.
Open the terminal in the project folder.
Run the code