My code looks like this:
string text = File.ReadAllText("test.txt");
text = text.Replace("some text", "new value");
File.WriteAllText("test.txt", text);
I want to edit two words, not only one:
- From
SIDE
to*SIDE
- And
BARCODE
to*BARCODE
Also is there any solution to find the file by the end of its name instead of full name? Because the file name is always different but it always ends with a string like "_ABC.desc"