Split .txt file into words and store each word in array
<p>Let's say my file has about 1000 words with commas, dots and semicolons.
I have to split the text into words (probably using "strtok", but I don't know how to do this correctly) and then write these words into array. How to do such a thing? Can somebody write a piece of working code and explain how it works?</p>