io, string, vector: use a std::ofstream to write to a file and a std::ifstream to read from a file. see: ...
en.allexperts.com