Adding a file to run with a command line tool
Is there a way to have xcode 5 run a command line tool program with a file that the program can pull data from to use in a cin or scanf function? I'm thinking of what can be done in the command line when once a program is compiled you can have run "myfile <infile.txt" and your program will run taking input data from infile.txt rather than the keyboard.