Is it possible for Eclipse to read stdin from a file?
< ${workspace_loc:/MyProject/file}
in debug configuration/arguments/program arguments:
works well for me.