Public Component

int pagesDumped;

void DumpPage(StreamReaderA sr, StringA% line) {

const int linesPerPage = Console::WindowHeight -1; const int charsPerLine = Console::BufferWidth -1;

line = sr->ReadLine(); if (!line) break; // end of stream

Console::WriteLine(line); line = nullptr;

Console::WriteLine(line->Substring(0, charsPerLine)); line = line->Substring(charsPerLine);

public:

Was this article helpful?

0 0

Post a comment