lmguru
27th January 2009, 13:44
Hi, I have some old program in C implementing in Qt4, an I`m trying to open file with fopen, and it give me errors when i compile it:
QString path, path2;
FILE *vstup;
path2 = lineEdit->text();
path = path2.section('/', -1); //it cuts from path to file the name of file name
vstup=fopen(path,"r");
The problem is in variable path, i don`t now how to convert it into right type for fopen. Thank`s you for any advice.
QString path, path2;
FILE *vstup;
path2 = lineEdit->text();
path = path2.section('/', -1); //it cuts from path to file the name of file name
vstup=fopen(path,"r");
The problem is in variable path, i don`t now how to convert it into right type for fopen. Thank`s you for any advice.