C++ FAQ Celebrating Twenty-One Years of the C++ FAQ!!!
(Click here for a personal note from Marshall Cline.)
Section 36:
[36.4] How do I serialize/unserialize simple types like numbers, characters, strings, etc.?