Hey All,
I would like to count the number of times a word shows up in a text file. Say you have a text file that contains:
Up, this works
Down, this doesn't work
Up, this works
Up, this works
Down, this doesn't work
etc..
I could like to count the number of times 'Up' occurs and the number of times 'Down' occurs. I've tried several things like reading the file to an array and breaking out the 'Up' part but can't seem to get it total the number. It just says it's '1' and doesn't