Redirecting stdout to a file in C through code

前端 未结 3 1136
梦谈多话
梦谈多话 2021-01-13 20:19

I am outputting to stdout. How can I redirect that to a new file through code? While we run the program we can redirect like ./sample > test.txt. How can I d

3条回答
提交回复
热议问题