Im new. I want to address a character in a .txt file as I would do in an array like this:
int a[100];
for(i=0; i<100; i++) {
a[i]=x;
//or
cin >> a[i];
//or
cout >> a[i];
}
can I use this method to the .txt file? if I can do this with pointers, how?