0
Can you print the output of a program on an text external document
4 Answers
+ 2
@Christian Klen:
This will work on linux and unix-like system, but on windows I'm not sure :P
But there's probably another way to do it ;)
+ 1
Hi.
Yes, it's possible.
You just have to redirect the output for a file using the '>' operator, like this:
python your_program.py > your_file.txt
The '>' operator redirect the output of your python program (your_program.py) to the file (your_file.txt).
I hope it helps.
+ 1
Yeah? Ok: I believe you... I prefer than run windows :P
0
@visph,
It will work properly on Windows as well. Give it a try.