阅读背景:

输出文件重定向(几乎)永远不能在我的Linux程序中使用

来源:互联网 

If I type myprogram > file I end up with a file of size 0 except for one time when it worked. Same program, no changes between times when it worked and when it didn't. Without the redirection it prints out to the terminal just fine. Virtually all the online help assumes you are needing to redirect std error but that is not the case here.If I type myprogram > file I end up with a file




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: