write a 2dm-file