I need to know how to write a program which opens a textfile and counts how many spaces and vowels it contains. The name of the file should be read in from the user. If the file could not be opened (because it does not exist, for example) the program reports an error message and stops.
Note that the vowels are counted, whether they are upper or lower case. One way to overcome this is to uppercase the character read in from the file, using the toupper( ) function. Then compare the character to the set of uppercased vowels.
Can you help me?