getting home
Ajay Bansal
Ajay_Bansal@infosys.com
Thu Jan 30 10:33:00 GMT 2003
hint
Try getting the environment variable HOME
-----Original Message-----
From: Christian Schaefer [mailto:caefer@krachstoff.net]
Sent: Thursday, January 30, 2003 5:11 PM
To: gcc-help@gcc.gnu.org
Subject: getting home
hi again,
I need to open a file in the users home directory.
how can I get there.
I tried 'FILE *fp = fopen("~/.myapp/myfile","r");'
but that didn't work.
how do I do that?
regards
/christian
More information about the Gcc-help
mailing list