write SCCs into file