read file for kmeans