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
Who knows if someone decides to put a space before or after the equal sign? That would break your existing solution because it would not find "part =XXX". With split you get the parts on either side.