Extracting Data to Txt File

Using DraftSight (newest free version), Win 7 (64bit).  Is there a way or method to automatically extract coordinates (x,y) of lines to a text file?  DWG file would have about 50 to 100 separate lines, nothing else in the file. See below:

 

Don