diff --git a/count_word.py b/count_word.py index e69de29..d52e94e 100644 --- a/count_word.py +++ b/count_word.py @@ -0,0 +1,7 @@ +def countWord(filepath,word): + import re + f = open(filepath) + text = f.read() + all_occurences = re.findall('(?