Yes. Use REGular EXpressions!
Take a look at the
Regex
class.
For example something like this:
string strFile = File.ReadAllText(@"c:\File1.txt");
strFile = Regex.Replace(strFile, @"\boldvalue\b", "newvalue");
File.WriteAllText(@"c:\File1.txt", strFile);