Thanks Elysia, works like a charm. No more <<return main()>> for me. Also as you see my indentation is improving :)
Code:
for (auto it = vec.begin(); it != vec.end(); ++it)
outstream << *it;
How do I use it? Where do it connect to my code? I also tried using the ostream iterator for DAYS but I could not get it to work and that was what force me to post this question which has never be ask on the WWW. Anyway, with my code being so tiny, would it against the forum rule to ask someone to include the fix if one is known?
Using ostream iterator been my goal for days, but now I be happy with anything that works. Strange to me that this is not a common thing to do. I found not a single thread that done it and 5000 docs tells me nothing.