write / read sequence files