Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

benthicwhale

macrumors newbie
Original poster
Jul 30, 2011
10
0
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.