So, I'm trying to get the program to read a file and print out the number of sunny, cloudy and rainy days. It just keeps printing 0. What am I missing? I've tried to change the file from a .dat to .txt but still the same result. Here's what's in the data file: So, I'm trying to get the program to read a fil