开发者

How do I change stdin Stream with Eclipse run command?

I'm working on a project where rather than using command line arguments I am supposed to just pipe a file to stdin and pipe output to another file.

ie I need to run something like:

./program < infile.txt > outfile.txt

Is there a way to specify to Eclipse this is the command I want when it is run?

开发者_开发问答

I am running the Eclipse-C/C++ environment.


After using Eclipse for some time, it seems like there is not a straightforward way of doing this. I've resorted to just adding debug code to specify a file and then declare it as an input stream.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜