#include #include using namespace std; //myostream_seekp1.cpp int main () { int n1; ofstream myfile1, myfile2; myfile1.open ("data7.txt"); char ch1[100]; cout<<"\n replace string with seekp \n"; ifstream readtext1, readtext2; // myfile1.write ("Hello world of C++", 21); myfile1<<" Hello world of C++"; myfile1.close(); // readtext1.open("data7.txt"); char str1[200], str2[200]; while(!readtext1.eof()) { readtext1.getline(str1, 100); cout<< str1 << endl ; } readtext1.close(); // myfile2.open ("data7.txt"); myfile2.write (" Hello world of C++", 21); n1=myfile2.tellp(); myfile2.seekp (n1-7); myfile2.write (" php",6); myfile2.close(); // readtext2.open("data7.txt"); if(readtext2) { readtext2.read(ch1, 100); cout<< ch1 <