Monday, July 11, 2011

Is fgets faster than fgetc?

Is fgets faster in reading data than fgetc? but how- because we use fgetc (by putting it in a loop) to read individual characters from the file, but even when we use fgets, internally the computer reads the string character by character so it's the same thing. Is it preferable to use fgets rather than fgetc in reading data from a file.

No comments:

Post a Comment