My assignment is to read input file containing a paragraph and store words only in array. I have to get rid of all non-alphabetic characters so that the array ONLY contains words. If a compound word is separated by a dash (-) or any other punctuation mark, that punctuation mark should be removed and the two words should become one word.
you have gotta store the input file paragraph in a character array.
use isalpha() function to get only alphabets from this input array. and store the output in a new char array(string).remember, 2 words are separated by spaces.