public static void getSimilarDocuments(String fileName,String dirName) throws IOException{
		File dir = new File(dirName);
		if (dir.isDirectory()) {
		String[] fileNames = dir.list();
			File fich=new File(DIRNAME+"/similarities/"+FILE+".sim");
			FileOutputStream ps=new FileOutputStream(fich);
			PrintWriter ecrivain =new PrintWriter(ps);
			for(String poidName:fileNames)
				ecrivain.println(poidName + "\t" + getSimilarity(fileName,DIRNAME+"/poids/"+poidName));
					ecrivain.close();
					try{
						   Process proc=Runtime.getRuntime().exec("cat "+fich.toString()+" | sort -k 2n,2nr >"); 
						   InputStream in = proc.getInputStream();
						   BufferedWriter out=new BufferedWriter(new FileWriter(DIRNAME+"/similarities/"+"kk.txt"));
						   int c;
				            while ((c = in.read()) != -1) {
				                out.write((char)c);
				            }
				 
					    in.close();
					    out.flush();
					    out.close();
				 
						   }catch(IOException e){
						   }
		}
	}