You need:
#include <string>
Also, your while-loop is wrong - you should not normally use the eof() function as a loop control - use:
while( fileStream >> tempStr )
{
strText += tempStr;
cout << strText; // note operator <<
}
And I just noticed that your cout statement was incorrect too.
anon
2010-07-30 08:35:50