C program to count total words in an input file
问题 Input file contains a completely empty line at line 2 and an unnecessary white space after the final full stop of the text. With this input file I am getting 48 words while I was suppose to get 46 words. My input file contains: "Opening from A Tale of Two Cities by Charles Darwin It was the best of times, it was the worst of times. It was the age of wisdom, it was the age of foolishness. It was the epoch of belief, it was the epoch of incredulity. " Here's how I tried: #include <stdio.h>