Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Dealing with slash characters with fopen?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Dealing with slash characters with fopen?



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



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.