[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ????stringWithContentsOfFile????

From: Adam Fedor
Subject: Re: ????stringWithContentsOfFile????
Date: Tue, 17 Jun 2003 08:44:49 -0600
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.1) Gecko/20020905

reuss wrote:
What is wroing with that?
NSString *aLongText=[[NSString alloc]stringWithContentsOfFile:

alloc and stringWithContentsOfFile: are creation methods. You can only create an object once. Try either

aLongText=[NSString stringWithContentsOfFile: @"/path/aFile"];


aLongText=[[NSString alloc] initWithContentsOfFile: @"/path/aFile"];

reply via email to

[Prev in Thread] Current Thread [Next in Thread]