Reading Files using Loops and Functions
Overview: We will take a book and count how many words start with each letter. We will also make a set of result files that store all words starting with each letter.
Review the ASCII character codes for this lab ASCII Table
Read about how files work in C++ https://www.
Create a new file lab6.cpp.
Write a function int starts_with_letter(string filename, char letter) that takes a file and writes all the words that start with the given letter into a file. The function returns the number of words it put into the file.
Here is an outline for how your function should work.