I have been working to make all the characters in my file convert to all upper case. I have looked all over and asked people and I thought this should work but it's not reading my file. Any suggestions?
In your for loop, strlen() will not work on a fstream, only on C-strings. You need to use some kind of loop that can check for end-of-file. Also to convert to uppercase you should check to make sure it is a letter(isalpha()) before using toupper() so when you do use it you can make it simple: