I am trying to open a file in c++ and the server the progam in running on is based on tux.

string filename = "../dir/input.txt"; works but
string filename = "~jal/dir1/dir/input.txt"; fails


Is there any way to open a file in c++ when the filename provided is in the second format?


Question: Why does my 24VDC fan draw much less current than labeled?
Answer: Is the Speed of the fan 7500 RPM or something different? The manufacturer often specify the worst case situation and the typical values are 50% of that. In addtion to the mentioned load, at low temperature and at start-up the current might peak as well.