• 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: Error for FSReadFork
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Error for FSReadFork


  • Subject: Re: Error for FSReadFork
  • From: Marshall Clow <email@hidden>
  • Date: Thu, 26 Jun 2008 06:59:04 -0700

At 9:53 AM +0530 6/26/08, pallavi khutal wrote:
Hello All ,
Using FSReadFork I want to read a text file but while reading that returns error code like --4628 ,-4132,-5380 etc.
Following code I am using for opening and reading file.
FSOpenFork return successfully, but for FSReadFork is unuccessfull.



[ snip ]

flag = CFURLGetFSRef((CFURLRef)url , &ref);
result = FSGetDataForkName(&dataForkName);
result = FSOpenFork(&ref, dataForkName.length, dataForkName.unicode, fsRdPerm, &forkRefNum);
if (result == noErr)
{
result = FSGetForkSize(forkRefNum, &forkSize);
if (result != noErr)
{

Shouldn't this be "result == noErr" ?

--
-- Marshall

Marshall Clow     Idio Software   <mailto:email@hidden>

It is by caffeine alone I set my mind in motion.
It is by the beans of Java that thoughts acquire speed,
the hands acquire shaking, the shaking becomes a warning.
It is by caffeine alone I set my mind in motion.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: Error for FSReadFork
      • From: pallavi khutal <email@hidden>
References: 
 >Error for FSReadFork (From: pallavi khutal <email@hidden>)

  • Prev by Date: RE: Project templates
  • Next by Date: Re: Attach library (.a) in Xcode
  • Previous by thread: Re: Error for FSReadFork
  • Next by thread: Re: Error for FSReadFork
  • Index(es):
    • Date
    • Thread