export csv file

how do i export a csv file from a solidworks macro?!?SolidworksApi macros