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
)
, then increment articleNum
.line.split()
)articleNum
articleNum
to the value of this keyHope this helps