Eclipse reading stdin (System.in) from a file

后端 未结 11 1967
轮回少年
轮回少年 2020-11-27 03:40

Is it possible for Eclipse to read stdin from a file?

11条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-27 04:03

    < ${workspace_loc:/MyProject/file}
    

    in debug configuration/arguments/program arguments:

    works well for me.

提交回复
热议问题