How to write a program that reads a content of a file, while using an array.

Hello. I'm still getting used to c programming.

I was given an assignment to write a program that reads a file....
"Write a program that reads the contents of a file, counts the number of times each letter of the alphabet appears in the file, stores the letters and their counts in two parallel arrays, sorts the array of counts in descending order, and writes the letters and their associated counts to a second file."

Do I have to have two document files(?) in certain place in order to pull them up while running the program??? Any ideas??
closed account (E3h7X9L8)
http://www.cplusplus.com/doc/tutorial/files/
might help
@leryss thank you!
Topic archived. No new replies allowed.