What is the difference between fscanf and fgetc? I have a few people arguing with me on the differences. I thought fgetc reads character by character of a file. I thought fscanf reads the whole file. Is that corrrect? Can someone elaborate on what I forgot?
Jump to Post
Is that corrrect?
Not at all. Have you checked a C reference manual? The only similarities
fscanfhave is they read input from a stream, and fscanf can simulate
The people you were arguing with, what were their points? Perhaps we can clear up any …
All 7 Replies
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.