Now I'd suggest that you write a new sketch that uses the SD library to read the file. Use read to accumulate the data a line at a time into a char array, then use atoi to parse out the data items you need from each line. Once this is working, combine it with your original sketch.