So i have task to output to one file certain things from another file... Lets say input file is in format (NAME#SURNAME AGE) with 100 lines and i have to output persons that are older then 15 in this format (NAME AGE SURNAME) and i have something like this in struct
struct person
{
char name[10];
char surname[10];
int age;
};
Can I, and if I can how can I fread my input file to that struct (file is binary)