I have a program that I am writing fro school. In this program, I create a Struct of type person. The struct holds various data char *, ints and floats. I have no problems writing to the binary file and displaying all the contents in the file.
In another function I need to open the binary file and retrieve particular data from it. The data I need lies in byte position 37-40. I would then need to increment the position by 56 bytes to get the data from 97-100 and basically keep doing this until the end of file is reached.
I have been reading up on fseek but it doesnt appear that I can actually pass it a manual position. There are only the three options for the whence. Do I need to use another option to set the position? Any help would be appreciated.