#include<iostream>
#include<fstream>
using namespace std;
int main()
{
char ch;
ifstream file("zifu.txt",ios::binary|ios::in );
if(file)
{
while(file.good())
{
streampos here=file.tellg();
file.get(ch);
if( ch =='A')
cout<<"\nPosition "<< here <<" is A"<<endl;
}}
else
{
cout<<"ERROR: Cannot open file 'zifu'."<<endl;
}
file.close();
return 0;
}