In GUI:
List -> results -> path data -> file -> save as..
In script:
/OUTPUT,filename,extension, ! redirects output to file
PRPATH,_UX,_UY ! prints path data
/OUTPUT ! resets output redirection
but both solutions result in text file divided into pages.
The other way is to save values from all path points to a variable and export them into file:
*CFOPEN,filename,ext,,APPEND
*do,k,1,path_division
PSEL,itemname,pathname
*get,variable,PATH,0,ITEM,itemname,pathpt,k
*end
*vwrite,variable
%f