Fast way to count words in a text file
721850Dec 25 2006 — edited Dec 26 2006Hi!
Like the subject says, I'm looking for a really fast way to just count the words in a text file. Right now I simply use a buffered reader and increase the count by 1 with each reader.next() statement. It works, but if the text file is 1MB+, it takes quite some time. Is there a quicker way to do this?
Thanks!