java - Eclipse reading stdin (System.in) from a file -
is possible eclipse read stdin file?
pure java
you can redirect system.in single line of code:
system.setin(new fileinputstream(filename));
see system.setin().
eclipse config
in eclipse 4.5 or later, launch configuration dialog can set system.in read file. see the announcement here.
Comments
Post a Comment