Re: Slightly cheeky programming request
- From: Jim <jim@xxxxxxxxxxxxxxxxxx>
- Date: Wed, 21 Mar 2007 09:23:41 +0000
In article <1301ti3ofturfb@xxxxxxxxxxxxxxxxxx>, Graham J Lee wrote:
On 21/3/07 08:47, Jim wrote:
It looks like I might - again - try to learn coding on the Mac. However, I've
got a specific purpose in mind and a small request:
Could someone show me some example code that does the following -
Opens a text file for reading.
Reads 68 lines and puts each line into an array element.
Closes the file.
The text file would just be a list of filenames, say no more than 40 chars to a
line.
I've got the Hillegass book, so I'll be starting from scratch on that but from a
quick look at the contents page it doesn't cover file handling, at least not as
a self contained section.
You will need the following methods:
+[NSString stringWithContentsOfFile:]
-[NSString componentsSeparatedByString:]
Ah, now they look very interesting. Thanks.
Jim
--
Find me at http://www.ursaMinorBeta.co.uk
Please help to bring two classic works of whisky literature back into print
by visiting http://www.ClassicExpressions.co.uk Thank you.
.
- Follow-Ups:
- Re: Slightly cheeky programming request
- From: Jim
- Re: Slightly cheeky programming request
- References:
- Slightly cheeky programming request
- From: Jim
- Slightly cheeky programming request
- Prev by Date: Re: Interesting software
- Next by Date: Re: Slightly cheeky programming request
- Previous by thread: Re: Slightly cheeky programming request
- Next by thread: Re: Slightly cheeky programming request
- Index(es):
Relevant Pages
|