I\'ve got a part of my memory that I want to dump to a file. One reason is to save the information somewhere, and another is to read it again when my program restarts.
If you're on a unixy style system memmap and memcpy might give you neat solution.