Quote:
Originally Posted by Kodila View Post
i cant figur out how to count them
You know how to find the first occurrence of 'a', but you don't know how to count next 10 chars ?!

You may use :
Code: c++
char ExtractedChar(10);
ifstream FileIn("myfile.ext");
.
// search for first occurrence
.
for (int i = 0; i < 10; ++i) ExtractedChar[i] = FileIn.get();
.
// continue
.