Reading and showing various structures from a file?

I create a text file and store a structure in it, using fwrite. I then store another structure the same way in the same file. Then I want to read the structures and show them on screen, using fread. I do it well, the program reads and shows the data, BUT it only shows one structure!! and I want it to show all the structures that I have stored in the text file!!

Any answer will be extremely appreciated!

Thanks in advance!
Open the text file. If both sets of data are in it, your reading code is wrong. If they're not, your writing code is wrong.
Topic archived. No new replies allowed.