could you post the HTML?

commented: ok...check the thread i just posted it +0

whele your problem is that when does this
[QUOTE]while (getline(plainText, plainLine)){[/QUOTE]
thats where your first paragraph goes... change for
[CODE]while (!plainText.eof())[/CODE]
and it will work

Are you sure??? i just compile it
here
[CODE]#include <iostream>

include <iomanip>

using namespace std;

//global constants
const int SIZE = 12;

//function prototypes
bool getAverageRainFall(double rain[SIZE]);
bool getExactRainFall(double rain[SIZE]);
void displayResults(const double actual[SIZE], const double average[SIZE]);
int printMonth(int month);
// PRECONDITION: month holds an integer 1-12
// POSTCONDITION: the corresponding month (Jan, Feb, ..., Dec) has been
// printed to the standard output.

int main()
{
double rainfall[SIZE];
double averages[SIZE];
getAverageRainFall(averages);
getExactRainFall(rainfall);
displayResults(rainfall, averages);
return 0;
}

bool getAverageRainFall(double rain[SIZE])
{
for(int x=0; x<SIZE; x++)
{
cout << "Enter the average rainfall: ";
printMonth(x);
cin >> rain[x];
}
}

bool getExactRainFall(double rain[SIZE])
{
for(int x=0; x<SIZE; x++)
{
cout << "Enter the actual rainfall: ";
printMonth(x);
cin >> rain[x];
}

}

void displayResults(const double actual[SIZE], const double average[SIZE])
{
double difference;
difference = actual - average;
cout << "Month Actual Average Difference";
for(int n=0; n<SIZE; n++)
{
cout << setw(7) << printMonth(n) << setw(8) << actual << setw(9) << average << setw(10)
<< difference;
}
}

int printMonth(int month)
{
cout.width(8);
switch(month)
{
case 0:
cout << "Jan";
break;
case 1:
cout << "Feb";
break;
case 2:
cout << "March";
break;
case 3:
cout << "April";
break;
case 4:
cout << "May";
break;
case 5:
cout << "June";
break;
case 6:
cout << "July";
break;
case 7:
cout << "Aug";
break;
case 8:
cout << "Sept";
break;
case 9:
cout << "Oct";
break;
case 10:
cout << "Nov";
break;
case 11:
cout << "Dec";
break;
}
}
[/CODE]