#include #include struct aluno{ char nome[100]; int ra; int idade; }; typedef struct aluno Aluno; int main(){ FILE *f; f = fopen("aluno.txt","rb"); Aluno a; while(fread(&a,sizeof(Aluno),1,f) !=0 ){ printf("Nome: %s \n", a.nome); printf("RA: %d \n", a.ra); printf("Idade: %d \n", a.idade); } fclose(f); system("pause"); return 0; }