C program to write data into a file and read the same data from that file.

Following is the question asked in BAMU(Babasaheb Ambedkar Marathwada University) B.Sc in Computer Science(Honours) question paper for October 2018 examination.
This question is asked for 10 marks and hence requires some explanation along with program code. Please let me know the solution.
Q) Write a program in c to open file named test.txt, add Name and address of university, close
the file. Reopen the file and read the file and display the data. [10 Marks]