Data at start of file in HEX 78000000 0300497B ..............
equating to int32 120 and char 03 followed by a load of other char data,
data written by another of my programs and viewed in hex dump mode.
When trying to read it back with another program I have tried..
int j,padNumber;
char rot;
j=fscanf(fp,"%d%c",&padNumber,&rot); // insists on returning j=0,padNumber=0 & rot=0
whereas
char c1,c2,c3,c4,rot;
j=fscanf(fp,"&c&c&c&c&c",&c1,%c2,&c3,&c4,&rot);// gives
j=5,c1='x',c2='\0',c3='\0',c4='\0',rot='!x03'
which equates to my on file data.
Why can't I get my int back in native format