Read multiple text file in Arduino ide

You could do something similar to this. Though you will need to check the proper behaviour of parseFloat() when it doesn't detect a float value, ie., what it actually returns.

while(file) {
    int length = readFile(arr, file);
    file.close();
    handleArray(arr, length);
    file = root.openNextFile();
}

...

int readFile(float *arr, File f) {
    int i = 0;
    float val = 0.0;
    val = f.parseFloat();   // returns 0.0 when no float was found?
    while (val > 0.0) {
        arr[i++] = val;
        val = f.parseFloat();
    }
    return i;
}