S
sarmin kho
Hi Pythoners..
"print (text)' command will print the 'text' on dos window when executing a python script. i would like to save all the text printed on the dos window to a file at the end of the python script execution..
sys.stdout.GetLine() gave me an empty string..
where is the handle to the printed text, please?
i m also using scripts written by someone else so some printed texts are not mine but i would like to keep all the printed text for debugging.. the printed texts contain not only error messages but also all other texts i wish to keep.
many thanks chaps..
sarmin
"print (text)' command will print the 'text' on dos window when executing a python script. i would like to save all the text printed on the dos window to a file at the end of the python script execution..
sys.stdout.GetLine() gave me an empty string..
where is the handle to the printed text, please?
i m also using scripts written by someone else so some printed texts are not mine but i would like to keep all the printed text for debugging.. the printed texts contain not only error messages but also all other texts i wish to keep.
many thanks chaps..
sarmin