OK, when you are reading in from a file you do not use cin. Instead you use the fstream variable name. So using your code:

Code:
fstream filestr;

filestr >> ws;
I hope this helps.