/** * write the first 32 bytes to file */ public void write(java.io.RandomAccessFile ff) //throws tinySQLException { try { //----------------------------- // write out the primary header ff.seek(FLAG_INDEX); ff.writeByte((byte)0x03); setTimestamp(ff); // set current date YY MM DD (dBase is not Y2K save) setNumRecords(ff, 0); setHeaderLength(ff, numFields); setRecordLength(ff, recordLength); setReserved(ff); } catch (Exception e) { throw new TinySQLException(e.getMessage()); } }