how to open a file in user's home folder

Posted by flownt on Stack Overflow See other posts from Stack Overflow or by flownt
Published on 2010-05-27T19:29:26Z Indexed on 2010/05/27 19:31 UTC
Read the original article Hit count: 100

Filed under:
|

i'd like to put a kind of lock file in the user's home directory on linux(from c++) but fopen'ing ~/.fluudit doesn't seem to work.

fopen("~/.fluudit","w");   //fails

© Stack Overflow or respective owner

Related posts about c++

Related posts about linux