Exporting a description for a 3D polyline in an ASCII file

I have a series of 3D polylines that I want to export in a single ASCII file. In order to destinguish which segment is which, I want to assign a description to each polyline, which would be in the description section of the file. Is this possible?