0

I have a std::stringstream and I want a stringstream where the first N lines are removed. How can I achieve this?

The following lines using getline do not work as wished.

std::stringstream source(...);
for (int i(0); i < N; +i)
{
    char* c;
    source.getline(c, 256);
}
std::stringstream target(source.str());
user2546460
  • 853
  • 1
  • 6
  • 8

0 Answers0