How to control relative paths in Unix task?
How to control relative paths in Unix task?
- Subject: How to control relative paths in Unix task?
- From: John Nairn <email@hidden>
- Date: Mon, 22 Jul 2002 15:20:16 -0600
I am writing some scientific software to launch c++ processes and it
works almost as a I need.
I have embedded the unix executable in the bundle of my application (for
portability). My specific process, however, creates directories and
writes data to files. It creates the files with
fp=fopen(fname,"w")
where fname is something like "results/data/archive.data". I tried it
out and found that the folder and files were created in the same folder
as my ".app" (which at this time is the "build" folder with my project).
My question: I expect the relative path used in the unix process is
building off the unix working directory and that directory is set to the
application's directory by default. How can I control that location and
thereby control how the unix process resolves relative paths when it
creates file?
----------------
John Nairn (1-801-581-3413, FAX: 1-801-581-4816)
Web page:
http://www.mse.utah.edu/~nairn
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.