I want to concatenate two binary files.
Basically there is a header file containing a Print Job ticket and a PDF file. I want to put the two together..
Here is what I have..
return;
QFile file("out.prn");
if (!file.open(QIODevice::WriteOnly | QIODevice::Text))
return;
To copy to clipboard, switch view to plain text mode
The Ticket is obtained and opened read only...
QString ticketName
= ticketComboBox
->currentText
();
QString ticketName = ticketComboBox->currentText();
QFile *ticket = new QFile(ticketName, ftp);
ticket->open(QIODevice::ReadOnly);
QFileInfo ti( ticketName );
To copy to clipboard, switch view to plain text mode
Then the PDF file...
QString fileName
= directoryComboBox
->currentText
();
QString fileName = directoryComboBox->currentText();
QFile *file = new QFile(fileName, ftp);
file->open(QIODevice::ReadOnly);
QFileInfo fi( fileName );
To copy to clipboard, switch view to plain text mode
My problem is the connection from the Open files and how to dump them into the newly created "out.prn"
Ideas?
Bookmarks