void writetofile(fstream &file, int from, char* buf)
{
file.seekg(from);
int len=strlen(buf);
len++;
char str[len];
strcpy(str, buf);
file << endl << str << endl;
}
int main()
{ ...
File.open(filename, ios::in | ios::out);
char text[]="Some text";
writetofile(File, 160, text);
File.close();
...
}
Если Вы уже зарегистрированы на Портале - войдите в систему, если Вы еще не регистрировались - пройдите простую процедуру регистрации.