FILE *f; int i=0; int largo; f=fopen("personas.txt","r"); printf("\n\n PERSONAS \n"); while(i< PER){ fgets(personas.rut,15,f); largo = strlen(personas.rut); personas.rut[largo-1] = NULL;