How do I get a .DAT file (x/y coordinates) from Solidworks or from a .DXF?

Trying to convert solidworks profile to a .DAT file.