If I have an array like so

Code:
Resort  R[100];
and resNum is the number of R's instantiated
and I wrote to a binary file like so


Code:
ofstream fout("resorts.bin",ios::out | ios::app | ios::binary);
Code:
if(fout.is_open()){
            for(int i = 0; i < ResNum; i++) fout.write((char *)&R,sizeof(R));}
and I want to later read them back into each appropriate R[i] that I wrote them to, I need help with that.

How would I read the binary file back into R[i]?

using
Code:
for(int i = 0; i < ResNum; i++){
fin.read((char*)&R,sizeof R);
......etc}
Thanks in advance.