How to accomplish redirected input in Xcode4

Discussion in 'Mac Programming' started by benthicwhale, Sep 7, 2011.

  1. macrumors newbie

    Jul 30, 2011
    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.
  2. macrumors 6502a

    May 10, 2009
    Des Moines, WA
    I hate to do this but - post your code.

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

Share This Page