Hello! I wrote this program which is supposed to read a file character by character,and replace each letter of each word with it's uppercase version.However, it does't work and i can't figure out why.Could anyone please look over it and tell me where is the problem? Also,another aspect that is unclear to me is: if, for example, i use fstream stream_name(file_name,ios::in | ios:: out) ,can i read from/write in a file using only that one stream?
Here is the code: