This method is probably a cheap way to do it, but it works
When you read a file in MSDOS, the text just scroll down the screen and you can't see what was there. Well this prints out 1000 characters of the file being viewed, then lets the user hit any key to see the next 1000 characters of the file, and so on.
Simple code too. eh.
#include "iostream.h"
#include "stdio.h"
#include "stdlib.h"
#include "conio.h"
int main()
{
int idx = 0;
FILE *note;
note = fopen("Filename.txt","r");
if(!note)
{
printf("File NOT found.");
}
else
{
char c;
while(c != EOF){
idx++;
c = fgetc(note);
putchar(c);
if(idx == 1000){
printf("\n\n\t\t\t\t\t\tPress any key to continue...\n\n");
getche();
idx = 0;
}
}
printf("\n\t\t\t\t\t\tPress any key to quit...");
fclose(note);
getche();
}
return 0;
}