finish saving tab-formatted lattice file