hii....
i want to store data into file in hexadecimal format.

How can it be done ?

Follwing is the code I tried :

Qt Code:
  1. QFile fileC("test_1.hex");
  2. QTextStream outC(&fileC);
  3.  
  4.  
  5. unsigned char cData = 47;
  6. outC << cData;l
To copy to clipboard, switch view to plain text mode 

The code writes 47,but in Char Format.How can we conver it into hexadecimal