Read a coordinate in .txt to create image in palabos code LBM

Hi all

I have a question about the palabos code, I have a file.data with some coordinates represent point in the mesh, I want to read this file to save this values in the image(XDim,YDim) I dont have idea how to do that, someone know to do that?

Thanks a lot

Javier