Thank u...

The error solved bt on printing in file, I've coded as
Code:
_ftprintf(file1,_T("%.2X"),ibyte);
each data printed as 0 only.. not the exact converted forms of getting values in CString.

So I've confirmed the ibyte value by formatted on CString.Since all the values are 0 only..
wy so?? I'm confused!!!!!