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