Hi Boys 'n Girls-
Kin someone point out the problem with this code?

#include "stdafx.h"
#include <stdio.h>

int main(int argc, char* argv[])
{
FILE *Afile;
int xx=123456,yy;
Afile=fopen("d:Test.txt","wb");
fwrite(&xx,4,1,Afile);
rewind (Afile);
fread(&yy,4,1,Afile);
printf("\n Wrote: %d\n Read: %d\n",xx,yy);
_fcloseall();
return 0;
}
Thanks,