Here is some example code.
The file contains
Cat
Dog
that is it. Now when I execute it. It will print out:
Cat
Dog
and that is it. It should print go:
Cat
Dog
Cat
Dog
any thoughts?
#include <iostream>
#include <stdlib.h>
#include <fstream>
using namespace std;
#include <string>
#include "time.h"
#include <vector>
#include <algorithm>
#include <sstream>
int main()
{
string calcstring;
ifstream input1;
input1.open("calc.txt",ios:

ut);
while (getline(input1,calcstring))
cout<<calcstring<<endl;
input1.close();
input1.open("calc.txt",ios:

ut);
while (getline(input1,calcstring))
cout<<calcstring<<endl;
input1.close();
return 0;
}
Thanks for the help
Sincerely,
Ronald