Problem while reading an information from a file as a binary format.

Posted 20 April 2013 - 02:57 AM

Hi everyone. I got a problem during binary file handling. So I need to read information from a file as a binary format and keep the information in an array of struct. And then I need to display the information. When I read and display, it shows all the garbage values. Not even a single person information is displayed correctly. I think this is the problem during the reading from a file. So what is the problem of the code?