zout.write(version.getBytes(), 0, version.getBytes().length);
if (comment.length() > 0)
zout.write(("\n" + comment).getBytes(), 0, ("\n" + comment).getBytes().length);
zout.closeEntry();
for (String file : files) {
if (!file.endsWith(".log")) {
InputStream in = new FileInputStream(file);
ZipEntry e = new ZipEntry(file.replace(File.separatorChar, '/'));