Is there any way to get the output of the program for writing both in the console and in the file?
No one has answered this question yet.
See similar questions:
or similar: