Hello guys, this is my first post, so don't be harsh if I do something stupid.
Well, the reason why I'm posting here is because I need to find a method to alter the stream itself, not just the buffer I send to a variable with "file.Read(".
For example, lets say i have a file whose bytes are as follows:
05 FF 3E 23 80 BD
As I'm using MFC I'd use 'file.Open' to open the file, and 'file.Read' to send the stream above to a buffer (char *) variable.
What I want to do is to change the stream to something else before I use the Read function so that it will be something different when I read the stream whilst still keeping the file untouched.
The reason I need this is for encryption purposes, and because I dont want to create a temporary file on the computer.
By the way, I don't want just to send the stream to the buffer and then process it, I want to change the stream itself.
Any help is appreciated.