I keep getting the EOF error when I execute the Python script using stream redirection.
Script
name=input('Enter your name : ')
print ('Welcome ' + name)
input('Press \'ENTER\' to exit!')
Execution command:
helloworld.py < input.dat
Error:
Enter your name : Welcome Gunit
Press 'ENTER' to exit!Traceback (most recent call last):
File "D:\Reference\Python\Codes\helloworld.py", line 28, in <module>
input('Press \'ENTER\' to exit!')
EOFError: EOF when reading a line