引用第1楼euco于2007-07-21 18:16发表的 :FILE *fin=fopen("in.txt","r");FILE *fout=fopen("out.doc","w");for(i=0;i<10;i++)fscanf(fin,"%s",temp);.......