Question:The _____ function is used to read a single line from a file and is used when dealing with text files. For reading binary data or other specific segments of a file, you should use the _____ function instead.
A fgets(), fseek()
B fread(), fgets()
C fputs(), fgets()
D fgets(), fread()
E fread(), fseek()
+ ExplanationAlthough it is possible to specify a maximum length when calling it, the fgets function defaults to reading a single line from the given file resource and is primarily used for text files. The fread function, on the other hand, is used primarily to read binary data. That makes answer D correct.