This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]