I'm not sure I understood your question correctly, but if the CSV file's first column contains x
coordinates, the second contains y
coordinates, and the third z
coordinates, it's actually quite easy.
Assuming that your CSV file looks like this [the titles are important]:
points.csv
x,y,z