i have problem with ifstream open function. I create app under linux in netbeans. My code is:
ifstream file;
file.open(path);
file.is_open()
.
.
.
and problem is in path. When I use ~/Desktop/file.txt and run app, file is not opened. But when I debug the app, all works fine. Any hints for this problem? Thanks