Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
Assuming a simple structure that does not contain pointers, to write the structure to a file I would flatten it to a byte array.
I have normally done this by making a void pointer to the structure, and the copying the void pointer contents to a char pointer. The mbed compiler will not let me do this. So how is it done?