I am writing a program that refuses to work. I use fwrite to write the struct to a file in main. Everything seems to write properly. However I can't seem to read the info back from the file properly. All the members that were read and assigned in main are working however whenever i pass the struct to functions to read or assign specific members, those members are not able to be read properly from the file.
I am using windows vista home promium and borland 5.02