//******************************************************** //func seekp():direct access to file using writing pointer //ostream &seekp(off-type offset, seekdir origine); //******************************************************** #include #include using namespace std; //------------------------------------------------------- int showFileContent(){ char ch; ifstream testl("testchar",ios::in|ios::binary); if(!testl){ cout<<"Error opening file in testl\n"; return 1; } while(!testl.eof()){ testl.get(ch); cout<>pos; cout<<"Insert speech: "; cin>>speech; editFileContent(pos,speech); showFileContent(); return 0; } //output file for position 33 and speech Stella /* first 012345678901234567890123456789012345678901234567890 12345678901234567890123456789012345678901234567899 Insert position from begins to insert speech: 33 Insert speech: Stella after (..) 01234567890123456789012345678901Stel678901234567890 12345678901234567890123456789012345678901234567899*/