the link that you gave does not explain the thing clearly . i am not interested about headers . i need only the data for processing.

ok, AND operator was creating some problem in the earlier case.

so, i am doing other way...

Code:
#include<iostream>
using namespace std;

int main()
{

    int x = 129;
	char m = (char)x ;     
	cout<<m<<endl;    // printing a raw weired character            


/*****trying to retrieve *******/

	int d =  m;
	cout<<d<<endl; // is there no way to get that number ?

                                           // it is printing -127 !! 
}
i have not usued AND operator....if i can do it, i can get a raw file.


this method, sould give me back the number as the character fits into four byte integer.


i think here i have to use some trick. can you help ?