There used to be a bug in eclipse that prevented a run configuration from redirecting a file to stdin but supposedly it\'s fixed. However, I can\'t find any documentation t
I hope I understand correctly.
The file needs to have new line at the end.
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
System.out.println(scanner.next());
}
}
File to contain a text (and ends with an new empty line, not only a text).
Then Run Configuration | Common | Input File
And the program will print the file content.
Edit: Build id: 20150621-1200