public static Product buscarCod(String cod) throws IOException{
		
		try {
			ObjectInputStream dataIn=new ObjectInputStream(Files.newInputStream(path));
			
		while(true ){
				
				Product product=(Product) dataIn.readObject();
				
				if(product.getCod().equalsIgnoreCase(cod)){
					
					System.out.println("Este cod ya existe");
					return product;
				}
		}
		
		
		} catch (ClassNotFoundException e) {
			System.out.println("Error al leer el fichero binario "+e.getMessage());
		}catch(EOFException e){
			System.out.println("Final de fechero");
		}catch(IOException e){
			System.out.println("Fin de lectura");
		}
		return null;
		
	}