[Tutor] path

kirk Bailey idiot1@netzero.net
Thu, 28 Feb 2002 21:40:26 -0500


ok, I want to have a program tell itself where it lives, so it can
figure out path information.
I want it to read a config file, but it has to know where it is, and
use that to read the config file, so it knows where everything else
is! 'pwd' in unix would work, and mabe a few other things, but I do
not seem to stumble over what is needed to do this. when I tell it to
just open the file 'foo.cf' it stumbles, as when it tries to open
'./foo.cf'! Clue eagerly saught, over.

-- 
 
end
	    Respectfully,
			 Kirk D Bailey


+---------------------"Thou Art Free." -Eris----------------------+
| http://www.howlermonkey.net mailto:highprimate@howlermonkey.net |
| http://www.tinylist.org  +--------+  mailto:grumpy@tinylist.org |
+------------------Thinking| NORMAL |Thinking---------------------+
                           +--------+

NOTE: By sending SPAM to this address you agree to pay me a service
fee of $100 for the service of receiving,  storing,  examining, and
deleting your piece of SPAM. I am a postmaster, and take a dim view
of such.
----------------------------------------------------
Sign Up for NetZero Platinum Today
Only $9.95 per month!
http://my.netzero.net/s/signup?r=platinum&refcd=PT97