• 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
Path Problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Path Problem


  • Subject: Path Problem
  • From: "Sharayu Puranik" <email@hidden>
  • Date: 24 Nov 2004 04:52:28 -0000

 
hi

I do have one problem with setting path of files

I m using file related functions like fopen, fclose, fread, fwrite in Xcode
Objective-C project

the problem I m facing is ;

say, I have to open one text file present on Macintosh HD volume
then I write the following code

filePath = @"Macintosh HD:file1.txt";
filePtr = fopen(filePath,"r");

when I execute this code, the project crashes
but if I write

filePath = @"file1.txt";
filePtr = fopen(filePath,"r");

where file1.txt file is present in current project directories Build folder then code
works smoothly

so how should the path of files be written?
means how to code path for files which r not in current project directory??


thanx



 _______________________________________________
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: Path Problem
      • From: Chris Espinosa <email@hidden>
  • Prev by Date: Re: APPLE GUYS: Do you want Shark profiles of XCode when it hangs?
  • Next by Date: Re: Path Problem
  • Previous by thread: Re: APPLE GUYS: Do you want Shark profiles of XCode when it hangs?
  • Next by thread: Re: Path Problem
  • Index(es):
    • Date
    • Thread