4 File Io Need Include Struct Person Createperson Printperson 2 Write Function Opens File Q37167210

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

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.