ByteBuffer buf = ByteBuffer.allocate(LEN_DATA); fc.read(buf, recordOffset + dataOffset); buf.position(0); byte[] bytearr = new byte[buf.remaining()]; buf.get(bytearr); String strElevation = new String(bytearr); return Integer.parseInt(strElevation);
data = readFile(name); elevation = data[4];