while (exit!=true )
{
input sprintf(thename, "person%d.txt", thecounter);
searchfile=fopen(thename,"r");
fscanf(searchfile,"%d%s%s%f%f\n",&theperson.id,theperson.firstname,theperson.lastname ,&theperson.sallary , &theperson.saving);
numfirst =strcmp(inputfirstname,theperson.firstname);
numlast = strcmp(inputlastname ,theperson.lastname);
if ( numfirst == 0 || numlast == 0 )
}
I've been trying to make this so far its only work if I don't use loop and diretly point at the location file.
I wanted to search and its keep on having infinite loop despite the condition and btw this is not the full code as I cannot paste the whole module ofc there incrementation and fclose condition