开发者

How do I change stdin Stream with Eclipse run command?

开发者 https://www.devze.com 2023-01-18 13:02 出处:网络
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.

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

精彩评论

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