给定一个整数,如 97865将这个整数保存在文件中,要求以记事本程序打开该文件时,显示 97865
FILE *pFile = fopen("3.txt","w");
int i = 98743;
char ch[5];
ch[0] = 9+48;
ch[1] = 8+48;
ch[2] = 7+48;
ch[3] = 4+48;
ch[4] = 3+48;
/* itoa(i,ch,10);*/
fwrite(ch,1,5,pFile);
fclose(pFile);