新手上路的问题 该怎么把某字符后的内容输出到新的TXT文件中
比说说TXT文件读出数据1. 4.123
2. 4.321
3. 4.523
我想要输出文件是消除序号,求高人指点
#include <stdio.h> int main() { FILE *fpr = fopen("message.txt","r"); FILE *fpw = fopen("message1.txt","w"); int i = 0,num; float data; char c; while(EOF != fscanf(fpr,"%d %c %f",&num,&c,&data)) fprintf(fpw,"%.3f\n",data); return 0; }