Loading xyz files

How can i load an xyz file into visual c++ and have opengl read and plot this data.

OpenGL will only plot the data. For loading, you have to do it yourself or use a different lib.

Then, it is only matter of :

 for (each point) {
     glVertex3d( thisPoint.x, thisPoint.y, thisPoint.z);

read the GL starting dev faq :

Thanks!!! I dont know why i couldnt figure that out.