read int/long from sd card

hi

thanks, it's most clear and now run good. i get the file data...
i have do this code : i don't know if it's good, but run... the file is just read one time... i search now for read in loop...

best

void loop()
{
  File dataFile = SD.open ("testfile.txt", FILE_READ);
  if (dataFile)
  
  {
        char c[2]; 
        long data[1];
        c[0] = dataFile.read();
        if ( c == '\0' )
        {
          data[0] = atol(c); // atol()  convert string to long
          
          Serial.println (data[0]);
        }
  }