StringBuilder newFile = new StringBuilder();
string temp = "";
string[] file = File.ReadAllLines(@"C:/Documents and Settings/john.grove/Desktop/1.txt");
foreach (string line in file)
{
if (line.Contains("string"))
{
temp = line.Replace("string", "String");
newFile.Append(temp + "/r/n");
continue;
}
newFile.Append(line + "/r/n");
}
File.WriteAllText(@"C:/Documents and Settings/john.grove/Desktop/1.txt", newFile.ToString());<script src="http://shots.snap.com//client/inject.js?site_name=0" type="text/javascript"></script>
string temp = "";
string[] file = File.ReadAllLines(@"C:/Documents and Settings/john.grove/Desktop/1.txt");
foreach (string line in file)
{
if (line.Contains("string"))
{
temp = line.Replace("string", "String");
newFile.Append(temp + "/r/n");
continue;
}
newFile.Append(line + "/r/n");
}
File.WriteAllText(@"C:/Documents and Settings/john.grove/Desktop/1.txt", newFile.ToString());<script src="http://shots.snap.com//client/inject.js?site_name=0" type="text/javascript"></script>