Reading and splitting x,y,z data