请教一个问题,可以输出txt格式文件,怎样将数据输入到其他格式的文件,例如proc文件
请教一个问题,可以将数据输出到txt格式文件,怎样将数据输入到其他格式的文件,例如proc文件!,这个proc文件可以用文本打开![ 本帖最后由 wo严 于 2015-8-25 10:02 编辑 ]
2015-08-25 10:01
2015-08-25 10:38
2015-08-25 10:57
2015-08-25 10:58
2015-08-25 15:40
2015-08-25 16:03
程序代码:#include <stdio.h>
#include <string.h>
#include <math.h>
void main()
{
FILE *fo;
char str[]="*quit yes";
fo=fopen("t.proc","w+");
if (!fo)
{
printf("can't open file t.proc");
}
fprintf(fo,"%s",str);
fclose(fo);
}
2015-08-25 16:22
2015-08-25 16:22
2015-08-25 16:41
2015-08-26 10:16