Re: command line tool output into a string?
Re: command line tool output into a string?
- Subject: Re: command line tool output into a string?
- From: Bob Ippolito <email@hidden>
- Date: Fri, 23 Apr 2004 20:20:10 -0400
On Apr 23, 2004, at 7:56 PM, email@hidden wrote:
i'm using a system() call to call a command line tool. the command
line tool's output is output to standard output. is there anyway to
get that output directly into a string rather than having to direct
it into a file, then open that file? if so, how?
Yeah, don't use system(). You should use a high level abstraction like
NSTask, or you need to use popen or the like.
-bob
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.