Thank you but i got it. I wrote it as an unsigned long and read it back into a void * and it worked