I'm trying to get this function to read characters from an external file one by one, but i cant seem to get it to work.
when i do "FileIn.get(Ch);" the Ch variable is always ASCII value -52 (the default) and when i switched that to "Ch=FileIn.get();" the Ch variable changed to ASCII -1(it should have been 'M') also every other time i did "Ch=FileIn.get()" it did not change the Ch variable.
alright, there is an error opening the file. I'm not sure what it could be though. the file exists, it's in the correct place... is the problem in my code?
You are opening it correctly. However I doubt that your filename is correct.
Do your file really have .5 extension? Or is it a regular text file which have happened to have a name words.5? If so, the filename should be words.5.txt