Qt cannot cannot create/write to C:\\
I am writing a Qt program (4.7 for windows 7 initially) that requires writing to the installed directory (C:\Program Files...). No files are being created when I try to write to a location that would be "protected" (program files, C:\ etc). However, QFile is not giving me any error code (error() is returning 0 which means it worked fine). Here is a code snippit that I am using that is not working. I am closing the file its just much later in the program. QApplication a(argc, argv); // Setting plugin paths. QStringList paths = QCoreApplication::libraryPaths(); paths.append(QCoreApplication: