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.
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.