must be done in C
Write a function called printToFile() that takes one argument, a string that represents the name of a text file. The return type is void. In the body of the function, open the file for appending. Then prompt the user for a name, email, and age. Store the responses to each of these prompts on separate lines in the opened file (each line ends with a newline character) and close the file. In
OR
OR