fPtr=fopen("要讀取的檔案名稱","r");. for(int a=0;a<100;a++) fscanf(fPtr , " %c " , &data[a]); /* 讀入100個字元到data[100] */ fclose(fPtr); ...
確定! 回上一頁