On Mar 3, 2007, at 10:02 PM, John C. Randolph wrote:
On Mar 3, 2007, at 2:16 PM, Timothy Larkin wrote:
I am working on a Foundation tool which calls fopen() from a class
method. It runs correctly under the debugger.
Sounds like your code depends in some way on the current working
directory. Also, why are you using fopen() instead of
-dataWithContentsOfURL: or -stringWithContentsOfURL:?
Thanks for your response.
The path to fopen is absolute, and I am opening it for writing. I
don't see how this can be affected by the working directory.
I am using fprintf instead of accumulating a string and writing it all
at once because hundreds of writers are distributed throughout the
program tree, and each is asked to write thousands of times. It seemed
that having them write through a shared file stream would be quicker
than mutating a string a hundreds of thousands of times.
--
Timothy Larkin
Abstract Tools
Caroline, NY
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/email@hidden
This email sent to email@hidden