• 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
Dealing with slash characters with fopen?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dealing with slash characters with fopen?


  • Subject: Dealing with slash characters with fopen?
  • From: "Blair M. Burtan" <email@hidden>
  • Date: Wed, 29 Nov 2006 21:31:20 -0700

What's the proper procedure for dealing with a MacOS filename that has a
slash character in it and fopen?  I've read QA1392 but that doesn't really
tell me what I need to do.

If I have a file named Foobar/JoeMama.txt in Macintosh HD/Some Folder/,
Feeding the string /Volumes/Macintosh HD/Some Folder/Foobar/JoeMama.txt to
fopen returns an error because it thinks Foobar is another directory but as
far as MacOSX is concerned it's part of the file name.

Should there be quotes around some or all of this or some other funkiness?
Should I turn the slash into a colon?

Blair M. Burtan
Northern Lights Productions
www.northernlights3D.com



 _______________________________________________
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: Dealing with slash characters with fopen?
      • From: Scott Ribe <email@hidden>
  • Prev by Date: Re: Bus error in compiler...
  • Next by Date: Re: Dealing with slash characters with fopen?
  • Previous by thread: Re: GDB doesn't let me debug everything...aiiiiieeee!!!
  • Next by thread: Re: Dealing with slash characters with fopen?
  • Index(es):
    • Date
    • Thread