Counting the number of vowels in a file

In this recipe, we will open a sequential text file and count the number of vowels (both uppercase and lowercase) that it contains.

In this recipe, I will assume that a sequential file already exists. Please read Appendix A to learn how to create a sequential file.