This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
char buff[256];
int data[8];
int n = 0;
FILE *fp;
fp = fopen("D:\\abc.txt","r");
while (!feof(fp) && fgets(buff, 128, fp))
{
if(sscanf(buff,"%d %d %d %d %d %d %d %d",&data[7],&data[0],&data[1],&data[2],&data[3]
, &data[4], &data[5], &data[6]) == 8)
{
}
n++;
}
fclose(fp);
在while循环过程中ccs6.0会卡死,不能操作