I'm back !
It's more a copy/paste of tutorial see on the web than my own code for the sprintf().
But the complilator looks happy. What do you thinks about it ?
unsigned long taille_cph = 0 ,taille_cph_MAX = myFile.size();
int Chaine_Tampon, cpt = 0 ; // String of storage
char name_a[] = "Svg_ph";
char name_b[] = ".txt";
char name[256];
while(taille_cph <= taille_cph_MAX){
myFile = SD.open("crea_cph.txt", FILE_READ); // open "creation_cph.txt"
Chaine_Tampon = myFile.read();
myFile.close(); // close "creation_cph.txt"
sprintf(name, "%s%s%d", name_a, name_b, cpt);
myFile = SD.open( name , FILE_WRITE);
myFile.println(Chaine_Tampon,DEC);
myFile.close();
cpt++;
}