public int recorrerfin() throws FileNotFoundException, IOException {
        long ap_actual, ap_final;
        int contador = 0;
        RandomAccessFile leer_archi = new RandomAccessFile("base_conocimiento", "r");

        while ((ap_actual = leer_archi.getFilePointer()) != (ap_final = leer_archi.length())) {
            char etiqueta[] = new char[15], temp;
            for (int c = 0; c < etiqueta.length; c++) {
                    temp = leer_archi.readChar();
                    etiqueta[c] = temp;
            }
            for (int i = 0; i < 8; i++) {
                //leer_archi.readInt();
                leer_archi.readFloat();
            }
                
            contador++;
        }
        leer_archi.close();
        return contador;
    }