Original Post
Hello, I want to read in a fixed amount of ASCII records from a file. I would like to know if I could do this using an STL algorithm. I know you can do the following: copy(istream_iterator(m_File), istream_iterator(), back_inserter(Book.m_Chapters)); What I would really like to do is something like this (doesn't work): copy(istream_iterator(m_File), istream_iterator(m_File) + NumOfChapters, back_inserter(Book.m_Chapters)); Is there a way to achieve this behavior or is there a better solution I don't know of? Thanks in advance, Jeroen