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

Oct 23, 2015 at 10:48am
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??
Oct 23, 2015 at 8:54pm
closed account (E3h7X9L8)
http://www.cplusplus.com/doc/tutorial/files/
might help
Oct 24, 2015 at 1:25pm
@leryss thank you!
Topic archived. No new replies allowed.