第1个回答 2013-02-13
FILE * fp;
unsigned short buf[5];
int i;
if ((fp = fopen("xxxx","r")) == NULL)
exit(1);
while (!feof(fp))
{
fread(buf, sizeof(unsigned short) * 5, fp);
printf(%d,%d,%d,%d,%d\n", buf[0], buf[1], buf[2], buf[3], buf[4]);
}
fclose(fp);本回答被提问者和网友采纳