Been using this code to change the index of 1 to 50001, 50002 ect. But it doesn't seem to save in the text file. Is there a way to say file.Save? or am I doing something silly.
Here is my code
int count = 50000;
string line;
//string str = File.ReadAllText();
System.IO.StreamReader file =
new System.IO.StreamReader(@"C:\Documents\new\example\example.txt");
while ((line = file.ReadLine()) != null)
{
line = line.Replace(":1}}", ":" + count + "}}");
count++;
}