Possible Duplicate:
How to read arbitrary number of values using std::copy?
Hello.
I'm reading nums from file. I do it with std::copy
copy(istream_iterator<int>(input_file),
istream_iterator<int>(),
back_inserter(first));
But this function copy only whole file, although I want to copy only N symbols. Thanks.