char tab to substring

Hello everyone! i am currently coding an arduino school project and i have to read an sd card and after converting it's content to a char tab to save it in the memory i need to convert the char tab to a substring so i can choose what charachters i want to read in the monitor series,exept that i reall don' know how to do that i tried to check guides and other forumes o transforming chars to substrings to no avail so i will attach my code down below and hopefully someone can help,thank you!

i need to convert the char tab to a substring

Sorry, but I don't understand what you want to do. Perhaps you could provide an example

UKHeliBob:
Sorry, but I don't understand what you want to do. Perhaps you could provide an example

oh i'm sorry i'll be more clear,my sd card has a telephone number, it has a street adress, and types of different garbages (liquide,glass etc) for a project, so i have for example telephone<0721903948>
i want a way that when arduino reads that from the sd card i put a code where i can only read what's between the <> so only the phone number my teacher said that i needed char tab[80]; so i save it in the memory then i need to transform it into a substring,and i really don't know how to do that,i hope i was more clear this time

What type of variable is the telephone number held in ?

UKHeliBob:
What type of variable is the telephone number held in ?

umm, from what i understood from your question currently i'd say it's only on the sd card,so chipselect 4, hopefully i didnt missunderstand what you said

Please post your program that reads the data from the SD card and explain how it will be viewed after reading it. Will you be using the Serial monitor to view it, for instance ?

UKHeliBob:
Please post your program that reads the data from the SD card and explain how it will be viewed after reading it. Will you be using the Serial monitor to view it, for instance ?

char tab[80];
#include <SPI.h>
#include <SD.h>

const int chipSelect = 4;

void setup() {
int i=0;
Serial.begin(9600);
while (!Serial) {
;
}

Serial.print("Initialization SD card...");

if (!SD.begin(chipSelect)) {
Serial.println("échec de carte sd");

return;
}
Serial.println("card initialize.");

File dataFile = SD.open("config.txt");
if (Serial.read());

if (dataFile) {
while (dataFile.available()) {
tab*=dataFile.read();*
_ Serial.write(tab*);_
_
i++;_
_
delay(100);_
_
}_
_
dataFile.close();_
_
}_
_
else {_
_
Serial.println("erreur ouvrir config.txt");_
_
}_
_
}*_
the tab and the int i to 0 are just to memorise the content not just read it from the sd card constantly and yes i'm using serial.println to read the content off the sd card

Please read Read this before posting a programming question then format your code and add code tags to prevent it being turned into italics

UKHeliBob:
Please read Read this before posting a programming question then format your code and add code tags to prevent it being turned into italics

char tab[80]; 
#include <SPI.h>
#include <SD.h>


const int chipSelect = 4;

void setup() {
 int i=0;
 Serial.begin(9600);
 while (!Serial) {
   ; 
 }


 Serial.print("Initialization SD card...");


 if (!SD.begin(chipSelect)) {
   Serial.println("échec de carte sd");

   return;
 }
 Serial.println("card initialize.");


 File dataFile = SD.open("config.txt");
  if (Serial.read());

 if (dataFile) {
   while (dataFile.available()) {
     tab[i]=dataFile.read();
     Serial.write(tab[i]);
     i++;
     delay(100);
   }
   dataFile.close();
 }

 else {
   Serial.println("erreur ouvrir config.txt");

 }
}

got it i didnt' see that i have to click preview to be able to post it,thank you,any who here is the program

In your program you read a character from the file and save it to the tab array then increment the array index ready for the next character. OK so far

What if you ignored all characters until you read a '<' then saved the characters in the array until you read a '>' ?

UKHeliBob:
In your program you read a character from the file and save it to the tab array then increment the array index ready for the next character. OK so far

What if you ignored all characters until you read a '<' then saved the characters in the array until you read a '>' ?

that is not a bad idea at all! i will try to apply it and see if it works