Writing vector data to columns

Apr 19, 2016 at 1:44pm
I have a vector in C++ called Tem. This vector changes at the end of each for loop. What I want to do is at each time step, write the whole contents of the vector to a file. That is, on the first time step I want to write the contents to one column, with each row having the elements in turn. The next time step should then have the Tem data output to the next column, with the lines containing all the elements. And so on. I would appreciate any help as to how this can be done.
Topic archived. No new replies allowed.