I have some code that reads a text file and sets it to a string. Each line of the text file contains separate data parameters that I a trying to extract. Here is an small ex
You can use split, it can be easier to read:
string value = partData.Split('=', 2)[1];
Beware that can throw an exception if there's no '=' on the line.