Vector Char and saving files

Can you use vector char's to save files with ofstream?
Also does anyone know how list the files that you created with fstream?
nobody knows about vectors?
hints : by vector
(1)std::istreambuf_iterator<char>

or use string to instead vector<char>

remember to use () to wrap the std::istreambuf_iterator<char>
Last edited on
Topic archived. No new replies allowed.