I give you hand.
Try to learn more about stdio.h and more particulary about fopen (open a file), fclose (close a file), printf (print string to standart output), fread (read a file).
There are many other way to manipulate files but it's spending to much time to speak you about.
As said thanaraj, you'll find the answer in books or in web site.