This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: getting home
- From: "Ajay Bansal" <Ajay_Bansal at infosys dot com>
- To: "Christian Schaefer" <caefer at krachstoff dot net>,<gcc-help at gcc dot gnu dot org>
- Date: Thu, 30 Jan 2003 16:07:22 +0530
- Subject: RE: getting home
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