C语言文件读写(输入输出重定向)
freopen("D:\\test.txt","r",stdin);//文件读入 输入重定向
freopen("D:\\test.txt","w",stdout);//文件写入 输出重定向 文件读入(输入重定向)
freopen ( " D:\\test.txt " , "r" , stdin );
文件写入(输出重定向)
freopen ( " D:\\test.txt " , "w", stdout ) ;
freopen("D:\\test.txt","r",stdin);//文件读入 输入重定向
freopen("D:\\test.txt","w",stdout);//文件写入 输出重定向 文件读入(输入重定向)
freopen ( " D:\\test.txt " , "r" , stdin );
文件写入(输出重定向)
freopen ( " D:\\test.txt " , "w", stdout ) ;
相关推荐