#include <stdio.h> int main (){ FILE * MyFile; char string[10]; MyFile = fopen ("myfile.txt","r+"); while(! feof(MyFile)) { fscanf(MyFile,"%s",string); printf("%s ", &string); } fclose (MyFile); return 0;}