#include<stdio.h>
int main(ing argc, int *argv[])
{
fropen("out_put.txt", "w", stdout); //重定向输出流
fropen("err_put.txt", "w", stderr); //重定向错误流
printf("this text write to a file!");
return 0;
}
#include<stdio.h>
int main(ing argc, int *argv[])
{
fropen("out_put.txt", "w", stdout); //重定向输出流
fropen("err_put.txt", "w", stderr); //重定向错误流
printf("this text write to a file!");
return 0;
}