The code below is a sub-program of my program. The problem it only reads the first line of the text file, and want it to read it all, I think you have to use the nth -1, but not sure.
Also when viewing the text file, how do I get it just to show a certain amount of lines at a time ( 1 screen full), like DOS?
void ViewFile()
{
const char * managerfile = "c:\\mfile.txt";
clrscr();
char buffer[256];
ifstream managerfile (managerfile, ios::in);
managerfile.getline (buffer,100);
cout << buffer << endl;
getch();
fManagerMain();
}