import javax.microedition.rms
int i;//record index
byte[] data;//record data
int offset;//record start bit position
int length;//record length (bit)
init data(){
//init data;
}
length = data.length();
RecordStore rs = RecordStore.setRecord(1, data, offset, length); //add a new record