Quote Originally Posted by bfr View Post
How would I create a file with Qt? I know how to open an existing file with Qt using QFile:pen(), but how would I actually create a file? QFile:pen() doesn't seem to create files (when I'm opening them in QIODevice::ReadWrite mode).
By the use
Qt Code:
  1. QFile file(fileName);
To copy to clipboard, switch view to plain text mode 
of this you can create a file. As well as bool exists () const checks file exists or not.
Take a look of http://doc.trolltech.com/4.3/qfile.html .