in reply to Counting occurances of a pattern in a file

Ok, amongst the other errors in your code, you could have easily found this elsewhere on the site. In the future, take the time to look around. Although, I think you would have ended up posting anyway judging from the file errors.
  • Comment on Re: Counting occurances of a pattern in a file