Reading in a float number from SD card and saving it as a variable

I have been searching for a way to save data from a .txt file that's on a SD card and save the data within that file into as a floating point number.

Here's the data that I want to read that's in the .txt file:
39.737781,-84.175880
39.737785,-84.175750
39.737716,-84.175956
39.737709,-84.176055

I want to be able to save each number into its own variable so that I can use it throughout the rest of my program. So any help to read in this data from the SD card as a floating point number would be great.

Thanks.

So any help to read in this data from the SD card as a floating point number would be great.

Read each character. Store it in the next position in an array, followed by a NULL, unless the character is a comma or a carriage return or line feed. In those cases, use atof() to convert the array to a float. Store the float where you want. The delimiter (comma or cr/lf) tells you which variable/array to store the value in.