SdFat - Getting a file name

Hi
I'm trying to get a long filename (a .txt) from a SD and setting it as a string, I searched trough the examples of the SdFat library and I found a code print the name, I just wat to store it. but the most far I could get was getting the assress in short unsigned int.

// List files in root directory.
  if (!dirFile.open("/", O_RDONLY)) {
    sd.errorHalt("open root failed");
  }
  while (n < nMax && file.openNext(&dirFile, O_RDONLY)) {

    // Skip directories and hidden files.
    if (!file.isSubDir() && !file.isHidden()) {

      // Save dirIndex of file in directory.
      dirIndex[n] = file.dirIndex();

      // Prints the Address of the file
      Serial.println(file.dirIndex());

      // Print the file's name.
      file.printName(&Serial);
      Serial.println();
    }
    file.close();
  }

Thanks

No worries, alread got it!