having problem using
Qt Code:
QString dataRoot = dataPath; dataPath += "\\TestProgram\\"; if(!dataDir.exists()) { dataRootD.mkdir("TestProgram"); }To copy to clipboard, switch view to plain text mode
this works just fine, but apparently it doesn't like writing a text file in here, if it doesn't exist already? isn't that the whole purpose of a datalocation?
Added after 52 minutes:
duh.... this works just fine, and writes just fine....
didn't realize I was trying to Open/Read a non-existing file first... before a check to create the file if it doesn't exist....
Bookmarks