Slide 1 Slide 2 Types of files Command line arguments File input and output functions Binary files Random access Slide 3 Slide 4 Data stored in main…