I have a text file with 4 different articles containing words in it, each article is separated by the text \":
This question sounds like homework to me. So I will give you an algorithm and let you implement it yourself:
articleNum). Start it at 0.with)<NEW ARTICLE>, then increment articleNum.line.split())articleNumarticleNum to the value of this keyHope this helps