/*Demonstrate how read and write work*/ #include #include #include #include #include using namespace std; int main(int argc, char* argv[]) { fstream fs; fs . open ("11seek.cpp", ios::in | ios::out ); if(fs){ string word; fs . seekg (0, ios::beg); cout << " @ " <> word; cout << word << endl; cout << " @ " <> word; cout << word << endl; cout << " @ " <>cn) { fs . seekg(cn,ios::beg); cout << " @ " <> word; cout << word << endl; cout << " @ " <