I have a file like this:
ex.txt:
Ola I am from the ocean.
I need to have a function in c ++ that every time it is called reads a character from the file and returns the corresponding ascii code of the char.
How is it done? It's just put:
int asciiCode = int (letter)
help pf.