PDA

View Full Version : Writing resource to filesystem



astropirit
11th May 2010, 18:02
Greetings,

How would one go about writing a binary file that has been declared as a resource to the filesystem. I have tried declairing a QFile with the resource in it



QFile file(":/exe/example.exe");

but when i write that to file, it is currupted and won't execute correctly. Would some one be kind enought as to show me the correct way of doing this?