Arduino: load variables with values read from SD card
File implements Stream just like Serial. so you can use parseInt and parseFloat 

int n = File.parseInt();
float x = File.parseFloat();
Serial.println(n);
Serial.println(x, 6);