DEV Community

aiana-exe
aiana-exe

Posted on

Answer: C Read until end of file

Something like

while (fscanf(f, "   %s   ", &etc) != EOF) {

}

Then use feof(f) to check if it was a fscanf error or actually EOF.

Top comments (0)