Thanks superbonzo, I think I understand. I'll give it a try in my real prog.

monarch_dodra, the sample code is indeed a copy of yours. The other thread with istream_operator motivated my to give the istream_iterator a try and I started with your sample, modifying it, testing around and get to no solution.