Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Sep 7, 2011, 02:01 AM   #1
benthicwhale
macrumors newbie
 
Join Date: Jul 2011
How to accomplish redirected input in Xcode4

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.
benthicwhale is offline   0 Reply With Quote
Old Sep 7, 2011, 10:30 AM   #2
lloyddean
macrumors 6502a
 
Join Date: May 2009
Location: Des Moines, WA
I hate to do this but - post your code.

This way we can see how best to answer your question.
lloyddean is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
Tutorial: How to get PCSX2 to run on Mac (without BootCamp) Mirrors Mac Applications and Mac App Store 22 Jun 14, 2013 08:19 PM
How to convinc my parents to let me buy a 17" MacBook pro Ulf1103 Buying Tips and Advice 55 Feb 20, 2012 08:11 AM
Does anybody know how to get TweetTask? xmelissaxmayhem Jailbreaks and iOS Hacks 3 Jul 3, 2011 01:21 AM
How to create an Archive in Xcode 4 ? Nekbeth iPhone/iPad Programming 2 Mar 29, 2011 03:39 PM
[HOW TO] DIY iPhone 4 Swivel Car Mount QuarterSwede iPhone Accessories 13 Mar 8, 2011 02:51 PM


All times are GMT -5. The time now is 11:14 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC