amiref
27th March 2011, 19:51
Hi
I want to open the file that is in a place in my computer . I use this code but it doesn't open it . How can I open that file ?
QString path = "C:\Program Files (x86)\vnb.txt" ;
QFile inFile( path );
if (!inFile.open(QIODevice::ReadOnly | QIODevice::Text))
return -1 ;
I want to open the file that is in a place in my computer . I use this code but it doesn't open it . How can I open that file ?
QString path = "C:\Program Files (x86)\vnb.txt" ;
QFile inFile( path );
if (!inFile.open(QIODevice::ReadOnly | QIODevice::Text))
return -1 ;