Why is this function printing infinite points when reading from a text file. the only solution I found was to re write the infile text and add an empty line.
void cop