write shaperate to file