Yay, thanks!
Using .clear() function worked, I just had the ios::in/out backwards on my files. Thanks for recommending fstream too, its much better to use for this.
Yah its working with all the ways to I/O because of that clear() function.. now I got a program to encrypt/decrypt files, add it to a win32 API and thats cool