Erste und letzte Zeile aus einer CSV datei lesen

Ein guter Mann. Hat ne Frage gestellt und verschwunden auf nimmer wieder sehen.

//SparkFun Pro Micro
#include <SPI.h>
#include <SD.h>
File myFile;
const uint8_t chipSelect = 10;
String sName = "text1.csv";

void setup() {
  Serial.begin(115200);
  while (!Serial) {
    delay(1000);
  }
  if (!SD.begin(chipSelect))Serial.print("No ");;
  Serial.println(" SD");
  if (SD.exists(sName)) {
    Serial.println("Open");
    myFile = SD.open(sName);
    String str1 = "";
    while (myFile.available()) {
      char c = myFile.read();
      if (c == '\r' || c == '\n')break;
      else str1 += c;
    }
    Serial.println(str1);
    str1 = "";
    while (myFile.available()) {
      char c = myFile.read();
      if (c == '\r' || c == '\n')str1 = "";
      else str1 += c;
    }
    myFile.close();
    Serial.println(str1);
  }
}

void loop() {}