reading from structs in a binary file
Hi, I created a program that takes in input from the user and stores it in a struct and then takes that struct and stores it into a binary file. Now what I'd like to do is read a particular piece of information from those records, like the of age of a person, so that I can compare it to the ages within other records. How would I go about taking out those particular bits of info?
Say I have a this struct erecc[x].age stored in that binary, how would I get it out?