How do I show an output from a file automatically?
Some outputs can be 1000's of lines long that can exceed the screen's limit only showing part of the output. I can output the results to a file but is there a solution for the program to open the output file automatically? I was suggested using 'system()' from 'stdlib.h' but I don't know how? any suggestions or help?

here's a sample code: (the commented lines are the implements)

#include<iostream.h>
#include<fstream.h>
// #include<stdlib.h>

void main()
{
ofstream OutFile ("C:/output.txt")
for ( int i = 0; i < 100; i++ ) { OutFile << i << endl; }
// system() //what parameter(s) do I use for this function or is there a better method?
}