read multiple txt files

Hello, everybody

I got a problem which I want to read multiple text files with C++ and store them.

There are a folder includes images files(text files, not like .jpg etc.), I want to average them. That means all the data from text files will be added together and then to calculate the average.

So, the first question is how to read these text files. The second question is how to store them and calculate them.

Please help me.
Thank you!

Topic archived. No new replies allowed.