PDA

View Full Version : How to accomplish redirected input in Xcode4




benthicwhale
Sep 7, 2011, 02:01 AM
Hi guys,

I want to know how to redirect input( 123.txt) into stdin? My program can work perfectly in Emacs with command line 'a.out <123.txt'. How can I accomplish it in Xcode4? I have tried to edit scheme and add '<sudoku4.txt' as an argument. But it could not work, Xcode4 will see it as an argument not a redirection.

I want to accomplish the same function as when I type 'a.out < 123.txt in command line.

Thank you all.



lloyddean
Sep 7, 2011, 10:30 AM
I hate to do this but - post your code.

This way we can see how best to answer your question.