Obviously this isn't the full thing - the thing compiles fine. The problem is the while statement "fails" every time - and before anyone suggests it I am certain the file exists; I have also tried files in the working / current directory.
The reason why I have put VC++ 2010 in the Title is that in VC++ 2005 which I used before, this worked fine - it is actually old code. I had to do a bit of messing around getting some stuff to work from 2005 to 2010 - I just can't work this out.
Thanks for the quick reply. That hasn't actually worked though.
I have just tried creating a file first using ofstream and then reading that in and it has worked?!?!?!?! It doesn't seem to work on "existing" files...
Does anyone know why - windows security access levels are fine, so i've no idea.