What is the best way to save STL data to a file?
You probably need to study the concept of serialization.
MFC serialization: https://msdn.microsoft.com/en-us/library/6bz744w8.aspx
Thanks IO, but I was never fond of MSFT serialization.... and few other MSFT "technologies"....
>>I'm using Visual Studio 2008
I believe your solution is solved in VS 2005. Please go back to that version. ;-)
No, avoid the odd version numbers, they always have bugs in the STL data to a file functions.
The only thing that's both flexible and portable is writing your own serialization stuff that writes and then reads strings.
Once upon a time it would be XML formatted. But I find XML to be WAY too indented an cryptic.
April 15th, 2017 11:23pm