4. File IO: You need to include the struct Person, createPerson,and printPerson from 2). a) Write a function that opens a filenamed “test” and prints some random text to the file. (not graded)b) Write a program that opens a file name “test” and prints thecontent of the file to screen. (not graded) III) Write a function“void savePerson(char fileName[], Person p)”that opens a file named“fileName” and prints the person to the file, as follows:
Name age score // Ex. James 54 230
c) Write a function “Person loadPerson(char fileName[])” that readsthe file created by “savePerson” and returns a Person with theattributes in the
OR
OR