public void RemoveFile(string qbFilename) { //open input pak, write the new file to the output pak file replaceFile(qbFilename, 0, true, delegate(Stream stream) { //Write the new file into the pak file //nothing... }); }