I want to copy the output in cmd prompt to txt file. I used the following command:
sample.exe /all > sample.txt
But the above command shows only the printf statements not showing the scanf. So i moved to tee command. Can anyone provide me the command to save the output file for sample.exe in txt file