I am writing a code that will accept a structure information from user, and write the structure in a file. After a structure is written, I read the structure from the file, and write it. But it isn't working as I was expecting. It seems as if it is writing data to file, but not reading it.