Hello,
I would like to know which is the optimized way to append large file content to a small file. I did the following, but it doesn't work for more than a 1 GB file, it throws error, while reading file content during "QByteArray myFileData = fileHandle2.readAll();"
Code:
QFile fileHandle, fileHandle2; fileHandle.setFileName("SourceFile.txt"); fileHandle2.setFileName("VectorFile.txt"); { { if(myFileData.isEmpty()) if(fileHandle.write(myFileData) == -1) } } fileHandle.close(); fileHandle2.close();
Regards,
Sankar.