How to write data to a file in Qt
This code snippet demonstrates File write operation in Qt for S60.
- Install latest Qt for S60 see Qt for S60 - Installation packages
- Check this link for installation guide: How to install the package.
- Go through this article: Getting started with Qt for S60
int main(int argc, char *argv)
QApplication app(argc, argv);
file.open(QIODevice::WriteOnly | QIODevice::Text);
out << "This file is generated by Qt \n";
- Above code will generate the file out.txt into c: of your emulator. You can find it at this path.
- For 5th edtion SDK
- For 3rd edition SDK