How does one accomplish equivalent of running following line on command line in IntelliJ or Eclipse .... :
java MyJava < SomeTextFile.txt
I've attempted to provide location of the file in Program Arguments field of Run/Debug Configuration in IntelliJ