using stdin in pycharm

pycharm, python, stdin

Solution

PyCharm's run configurations do not support standard input redirection. Please consider changing your script so that it reads its input from a file directly, and not through the standard input redirection.

Problem

I have started to use pycharm and i can't seem to in the command line i use to run the program in this way: ``` python parse_file.py < test.txt ``` when parse_file.py can be simple as : ``` import sys for line in sys.stdin: print line ``` i cant find in the configuration where to do it i tried typeing something like `<test.txt` in the script parameters but no luck I have looked at https://www.jetbrains.com/pycharm/help/run-debug-configuration-python.html but no luck there also Thanks

Original source

Related problems