export_seglistToTxtCollection function

Exports a segment list to txt collection