if (!feof(fp)) fwrite (a,2,10,fp);
for (i=0;i<10;i++) printf ("%d\n",b[i]);
if i use short, the file is copied successfully. btw using int, half the file is copied. what’s the reason behind that?