Anyone knows how to create Spline by importing text file in api?

hello everybody

i have points data in text file format and i want to create a spline in sketch by them only by api!!

does anyone know how we can do it?

SolidworksApi macros