Use the Run/Debug Configuration dialog to automatically submit input values from a text file instead of typing them in the Run tool window.
To enable redirecting, click Modify options, select Redirect input and specify the path to the target file.