Is it possible for Eclipse to read stdin from a file?
This is surprisingly not supported in Eclipse and it seems there are no current plans to add it. See https://bugs.eclipse.org/bugs/show_bug.cgi?id=155411 to follow and vote.
I will update here if it they do implement it.