how do you write an array of structures to a file, i tried this
fwrite(&seats[x], sizeof seats[x], 1, fl);
where fl is the file handler and seats is an array of structures.