One way would be to have a template file with the sections that you want to replace marked out with unique text, then do a find/replace on this.
private string Replace(string item, string replace, string text)
{
if (item == null || item.Trim() == string.Empty)
return string.Empty;
return Regex.Replace(item, replace, text, RegexOptions.CultureInvariant | RegexOptions.IgnoreCase);
}
This is a method to do a replace based on a regular expression. Call this as:
text = Replace(text, "^^ Unique Text ^^", "My replacement text");
Deja View - the feeling that you've seen this post before.