philip 0 Newbie Poster

Hello,
First I will tell theth I new in c++!
I' have a problem with converting the file Input Stream. I read a single character from the stream of the curent position of the file.In one case I set the hex flag; in another case I read from the stream and store in a temp buf without set any flags, then I convert it in hex storing in buffer in hex format.But then the characters in the buffer are not in the hex.Can you show me the right function or code for this operation.Thank you.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.