I have a structure i need put into a file I know that you can do binary files but when i use fopen, fwrite, the open works but fwrite always causes the program to crash. Can someone post an example of creating, writing and reading a structure from a binary file?