I've got problem with following lines. First I read from STDIN (one line from a Java program STOUT), then I would like to read from prompt in the Python (2.7) program.
for line in sys.stdin:
c = line.split()
break;
//
// do stuff
//
val = raw_input()
print(val)
which return:
Traceback (most recent call last):
File "test.py", line 6, in <module>
val = raw_input()
EOFError: EOF when reading a line
How to stop reading from STDIN and read from the prompt? Thanks, Nicolas