How do I redirect input and output with PyCharm like I would on the command line?
(added in Pycharm 5) In the Edit Configurations screen under Logs tab check the option: Save console output to file and provide a FULL PATH to the outputfile. thats it – works like a py-charm