Electrical and Computer Engineering
23 of 23
UAH
CPE 112
One More while Loop
•int main()
•{
•   ifstream inFile;
•   ofstream outFile;
•   inFile.open(“prob4.in”);
•   outFile.open(“prob4.out”);
•   char ch;
•   inFile.get(ch);
•   while(inFile)
•   {
•      if (ch != ‘\t’)
•         outFile.put(ch);
•      infile.get(ch);
•}