Hello
I wonder how I know if a particular file is a zip or not.
Anyone have any ideas?
I tried to do this:
The problem is that I can not distinguish between a non-zip file and a empty zip file...Code:FileInputStream fis = new FileInputStream(argv[0]);
ZipInputStream zis = new ZipInputStream(new BufferedInputStream(fis));
ZipEntry entry;
while((entry = zis.getNextEntry()) != null) {
MYCODE
}
Thank you very much.

