• 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: Simple File Data Reading Question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Simple File Data Reading Question


  • Subject: Re: Simple File Data Reading Question
  • From: Daniel Waylonis <email@hidden>
  • Date: Tue, 10 Feb 2004 12:45:14 -0800

On Feb 9, 2004, at 11:09 PM, Sam Daniel wrote:

> What is the specific code using
>
> (BOOL)readFromFile:(NSString *)fileName ofType(NSString *)docType
>
> to retrieve 3 integer numbers (separated by white space) in a single
> line text file and place them into an NSArray?

Hi Sam,

These methods will be helpful:

[NSString stringWithContentsOfFile:<NSString *path>];
[NSString componentsSeparatedByString:<NSString *sepString>];
[NSString intValue];
[NSNumber numberWithInt:];

Dan
_________________________________________________
Dan Waylonis email@hidden
Software Engineer http://www.nekotech.com
nekotech SOFTWARE 650.964.2490 (O)
_______________________________________________
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.

References: 
 >Simple File Data Reading Question (From: Sam Daniel <email@hidden>)

  • Prev by Date: Re: base64
  • Next by Date: Customizing NSSearchField menu
  • Previous by thread: Simple File Data Reading Question
  • Next by thread: Re: Simple File Data Reading Question
  • Index(es):
    • Date
    • Thread