Reading file including already set byte shift?

Hello, fellow programmers!

I was wondering if it could be possible to read a file including byte shift in C++. Here's an example:

Hello, world!

This shouldn't be too complicated to read using ifstream. But if I'll do a byte shift (using value 55 for example), how can I convert the contents of this file...

example.txt (Input file):


..into form that I can understand as a human being into my program?
Huh? Just read the file normally and do the shifting
Could you please elaborate?
A char is just a number. You can add 55 to each character.
OK, I see. Then I guess I have understood byte shifting. Thanks a lot!
Topic archived. No new replies allowed.