1. File Handling 2. What is File? A collection of data or information. One that has a name, called the filename. Almost all information stored in a computer must…