C语言怎样从文本中读取 数据避免换行符的干扰而且对字符串操作后原文本...答:txt,r+);if(fp==NULL){printf(cannot open file code.txt);exit(1);} while((fgets(s,100,fp))!=NULL){ replace(s,(,a); replace(s,,,b);replace(s,),c); fputs(s,fp); printf(%s,s) ;}fseek(fp,0,0);fclose(fp);return 0;} 查看更多答案>>求采纳 ...