Thread
:
XCode help - specifying the source of stdin
View Single Post
#
2
May 3rd, 2008, 04:39 AM
Viro
Registered User
Join Date: Nov 2003
Location: Oxford, UK
Posts: 2,485
Thanks: 0
Thanked 0 Times in 0 Posts
Use the C function freopen. You should never bank on the terminal being present and C already has a standard function to do I/O redirection. See
http://www.cplusplus.com/reference/c...o/freopen.html
for an example of how to use this function.
Viro
View Public Profile
Send a private message to Viro
Find all posts by Viro