#include <stdio.h>
#include <stdlib.h>

FILE *Arquivo;

int main(int argc, char *argv[])
{
  char nome[30];

  Arquivo=fopen("entrada.txt","rt");
  if (Arquivo == NULL) exit(0);

  printf("Qual o seu nome: ");
  fscanf(Arquivo,"%s",nome);
  printf("Nome: %s\n",nome);
  
  fclose(Arquivo);
  
  system("PAUSE");	
  return 0;
}
