In C (not C++)
For this assignment, you will use the C functions fopen, fclose,fseek, ftell, fread, fwrite, feof, etc. to do file processing. Theinput to your program will be a file full of records containingsome sort of information. Your program’s task is alter the contentsof the file so that the records are now stored in reverse order.The contents of each individual record are still presented in thesame order as before, but the order of the records themselves isreversed. For example, recall the simple “database” of Personstructs:
$ cat db.txt
ann F 1998
bob M 2000
sue F 2003
tom M 1997
Of course, this file is
OR
OR