#include int main() { FILE * fr; /* read from */ /*FILE * fw; */ /* write to */ int status; /*int n;*/ char str[100]; fr = fopen("note.txt", "r"); /*fw = fopen("out.txt", "w");*/ do { status = fscanf(fr, "%s", str); if (status != EOF) { printf("%s\n", str); } } while (status != EOF); fclose(fr); /*fclose(fw);*/ return 0; }