• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: [NSString writeToFIle:atomically:encoding:error] to stdout?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [NSString writeToFIle:atomically:encoding:error] to stdout?


  • Subject: Re: [NSString writeToFIle:atomically:encoding:error] to stdout?
  • From: SevenBits <email@hidden>
  • Date: Sun, 11 May 2014 10:21:46 -0400

On Sunday, May 11, 2014, William Squires <email@hidden> wrote:

> Is there a way to have the above send the string's contents to stdout
> instead of a named file? If not, no biggy, I'll just make another method to
> output all the lines (in my NSArray, which I sent the
> componentsJoinedByString: message to get the NSString whose output I want
> to go to stdout), but it just adds unneeded complexity that I'd rather
> avoid. TIA!


I don't believe that I understand your question. Won't a simple

printf("%s", [str UTF8String]);

suffice?


>
>
> _______________________________________________
>
> Cocoa-dev mailing list (email@hidden <javascript:;>)
>
> Please do not post admin requests or moderator comments to the list.
> Contact the moderators at cocoa-dev-admins(at)lists.apple.com
>
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden <javascript:;>
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >[NSString writeToFIle:atomically:encoding:error] to stdout? (From: William Squires <email@hidden>)

  • Prev by Date: [NSString writeToFIle:atomically:encoding:error] to stdout?
  • Next by Date: Re: [NSString writeToFIle:atomically:encoding:error] to stdout?
  • Previous by thread: [NSString writeToFIle:atomically:encoding:error] to stdout?
  • Next by thread: Re: [NSString writeToFIle:atomically:encoding:error] to stdout?
  • Index(es):
    • Date
    • Thread