without explaining too much detail as to why (its a long story) I need to be able to do the following in VB6:

1) given a double array full of values, store its exact binary representation in memory as a binary file.

converting to text wont work for me. I am trying to send a file to a colleague for troubleshooting. its an input to a dll and it has some sort of weird numerical error going on. I send a text representation of the array and it does not duplicate the issue. i cant send him the code to generate the error (another long story).

I suspect there is an issue with irrational binary representations of doubles ...

anyone know how to do #1 above?

any help greatly appreciated!