The program i've created is essentially a calendar. You add events, delete, search for etc. when you close out the program, it opens a txt file and writes the events into it in binary. When you open the program again it loads the events from the same file. Now because it reads/writes in binary i don't know if the problem is in the reading or writing process but essentially..some data is missing when it loads the file.
An 'event' consists of a date(3 integers), category(string), and description(string). The category and description are blank when loaded back into the program. Below is the code for the reading and writing portions as well as what the output should look like.