What do you mean you want to change the stream to something else? What do you want to change it to?
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
Now how in the world do you expect to decrypt a file without reading it?? Just read the file, decrypt it and save it in memory. I don't see why you need a temp file to do that.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
converting char[4] to int is simple assignment int x = *(int *)buffer; , assuming that buffer contains the binary representation of the int.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343