top of page


Word Counter


2 Medium

6 File Handling (text files)


Write a program that counts the number of words in a given text file.

- Input: Text file name
- Processing: Count words in the file
- Output: Print the number of words.

Need help with your programming skills?

If you need more help than just independent practise, then we're here for you. Book a 1:1 with us and we will be able to guide you to becoming a proficient programmer who can tackle any of the challenges an exam board can throw at you.

bottom of page