#include <stdlib.h>
#include <stdio.h>
FILE *arqtxt;

main ( )
{
     char palavra[256];

     arqtxt = fopen ( "arquivo.txt", "rt" );      
     if (arqtxt == NULL)
     {   
          printf ("ERRO!\n");
          exit(1);
     }

     while ( ! feof ( arqtxt ) )		 	
     { 				 	
         fscanf (arqtxt, "%s", palavra);             
         printf ("%s ",palavra);                           
     }					     
    					         
     fclose (arqtxt);
}
