previous = data.size();
}
dir.write(Constants.FT);
// base address of data and logical record length
Leader ldr = record.getLeader();
int baseAddress = 24 + dir.size();
ldr.setBaseAddressOfData(baseAddress);
int recordLength = ldr.getBaseAddressOfData() + data.size() + 1;
ldr.setRecordLength(recordLength);
// write record to output stream
dir.close();
data.close();