Hi,
Is there a way that we can write the output of a program on a text file??????
Hi,
Is there a way that we can write the output of a program on a text file??????
Yes there is. Ask the internet.
two ways jump out:
1. when you run your program, redirect the output to a file $program >output.txt
2. inside you program, instead of using printf/puts etc, open the file you want and fprintf/fputs to it