0
#include <stdio. h> #include<string. h> typedef struct? char name[20]; int password[8]; } Adm;
int main() { Adm adm 1, adm 2, adm 3, adm 4;
FILE * login;
login = fopen ("Adms.txt" , "r");
char to_find[] = "ana";
char to_find[] = "a123";
char to_find[] = "paulo";
char to_find[] = "p456";
while ( ! feof (login) )
{
if ( fgets (adm1.nome, 10 , login) == NULL ) break;
fputs (to_find, stdin);
break;
}
fclose(login);
printf("nome: ");
scanf("%s", adm1.nome);
printf("\nsenha: ");
scanf("%s", adm1.senha);
Return 0; }