I need to save bytes, words, dwords, and floats to files using Python in binary format. Then I need to read those values in from the file in C.
Basically I need an "fwrite" for Python, and use "fread" for C. But only "basiaclly".
Help.
P.S. I already wrote functions "FileWriteByte", "FileWriteWord", etc... and they seem to work fine. My only real problem is with "FileWriteFloat". I don't know how to write a floating point number to a file, so I just do a "FileWriteDWord(FloatNum*1000, FileHandle)" and then divide by 1000 in C. So if someone could help me on this then I would be fine. I am just asking abou the others also because I think there might be a better way. Thanks!