#include #include using namespace std; // myofstream_seekg1.cpp void readme(); int buffer =80; int main () { ofstream outisf1; outisf1.open ("dataseekp.dat"); outisf1<<" The seekg and tellg functions of ifstream"; outisf1.close(); cout<<"\n Reading dataseekp.dat \n"; readme(); return 0; } void readme() { int tellg_location, remainder; char charray1[101]; ifstream isf1 ("dataseekp.dat", ios::in|ios::binary|ios::ate); if (isf1.is_open()) { tellg_location = isf1.tellg(); isf1.seekg (0, ios::beg); remainder = tellg_location % buffer;; if (remainder > 0) { isf1.read (charray1, remainder); // append a null character to the end. //required in eclipse, qunicy is ok without NULL charray1[remainder]='\0'; cout << charray1 ; } } cout <