Ok I have a file with constant name and want to open it.
I am using Qt framework and I am on Mac.
The path of my project is :
~Desktop/RayTracerFrameWorkOOP/
(here I have everything, header, source files and all the relevant files of Qt)
Here I have the file that I need to read from too. What I think is remarkable is that the file is of kind : Unix executable file
From Qt IDE I open the project from the recent projects option with this path :
~Desktop/RayTracerFrameWorkOOP/QImageViewer.pro
Here is the code
and when I execute the program I am receiving the Error reading file message.Code:ifstream in("icosahedron_0.off"); if (!in) { cout<<"\nError reading file."<<endl; exit(0); }
Any ideas?