how to open a file in user's home folder - by flownt 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 Read the article