#include #include #include using namespace std; #include "prompt.h" #include "randgen.h" // demo ofstream int main() { int count; ofstream out; RandGen random; string filename = PromptString("enter file name: "); out.open(filename.c_str()); // out.open(filename.c_str(), ios::app); //to append to the end out << "CS201 test output file " << endl; for (count=0; count < 10; count++) { out << random.RandInt(1,100) << endl; } out.close(); return 0; }