K
Kurukuru
Guest
Original poster
Is it possible to open a file in the current user's home folder by doing something like (in C++):
ifstream fIn("/~/somefile.ext", ios::binary);
I know the code above does not work, but I wonder if there's anything like it available?
Or do you have to examine the HOME environment variable?
ifstream fIn("/~/somefile.ext", ios::binary);
I know the code above does not work, but I wonder if there's anything like it available?
Or do you have to examine the HOME environment variable?