saving/retriving strctures from files
i have an array of a a structure, called videos and i want to save it to file and then load it back in to memory later, so far i have the following code:
//to open the file, fname being the file name, and opp being the mode either rb or wb
tfile = fopen(fname, opp);
//to write the structure to the file
fwrite(&video, 8800, 1, tfile);
fclose(tfile);
this bit works i have looed in the file and it apers to contain the correct information, however the read bit dosent work, the code is the same except for this:
fwrite(&video, 8800, 1, tfile);
anyone know how to get this to work??