Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

how to write two dimensional vector to file

I have two dimensional vector vector<vector<int> > test; I want to save it to file and read it back. I tried to write it to a FileStorage, but after I read it back, it became one dimension vector. Does anybody have an idea? Thanks.

click to hide/show revision 2
retagged

how to write two dimensional vector to file

I have two dimensional vector vector<vector<int> > test; I want to save it to file and read it back. I tried to write it to a FileStorage, but after I read it back, it became one dimension vector. Does anybody have an idea? Thanks.

how to write two dimensional vector to file

I have two dimensional vector vector<vector<int> > test; I want to save it to file and read it back. I tried to write it to a FileStorage, but after I read it back, it became one dimension vector. Does anybody have an idea? Thanks.