Here is the function (with the right tags) that creates me this problem:
int rechercheUtilisateur(char numUtilisateur[TAILLE_NUM_UTI]){
int i, ligne = 1;
//declaration des tableaux locaux
char numString[TAILLE_NUM_UTI];
//place le pointeur au debut du fichier
myFile.seek(0);
//retrieve the ID number of the line
for(i=0; i<TAILLE_NUM_UTI-1; i++) numString=myFile.read();
numString='\0';
while(strcmp(numUtilisateur, numString)){
if(!sautDeLigne()){ //move to the next line
myFile.seek(0);
return 0;
}
ligne++;
//retrieve the ID number of the line
for(i=0; i<TAILLE_NUM_UTI-1; i++){
numString=myFile.read();
}
numString='\0';
}
//place le pointeur au debut de la ligne
myFile.seek(myFile.position()-TAILLE_NUM_UTI);
return ligne;
}
It looks in a text file by a user's ID number.
Thanks