salut j ai un programme pour le decompression de fichier zip mais il marche pas
voici le code:
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
public static void main(String[] args) {
 
    try
    {
    	FileInputStream in= new FileInputStream("C:\\Documents and Settings\\freee\\Bureau\\a.zip");
    	BufferedInputStream bin = new BufferedInputStream(in);
    	 FileOutputStream fos = new FileOutputStream("C:\\Documents and Settings\\freee\\Bureau\\a.txt");
    	BufferedOutputStream bout=new BufferedOutputStream(fos);
    	ZipInputStream zin= new ZipInputStream(bin);
    	byte [] buffer=new byte[2048];
        ZipEntry ze;
        while((ze = zin.getNextEntry())!= null){
 
 
 
        	for(int i=zin.read(buffer,0,2048); i!= -1; i=zin.read(buffer,0,2048)){
        		fos.write(buffer,0,i);
 
        	}
        bout.flush();
        bout.close();
 
        }
 
    }catch (Exception e) {
 
	                     }
 
	}
s il vous plait aidez moi