Read cpecific values from text file

Hi

 I have a text file with several lines

AAA=1

BBB=5

CCC=3

DDD=4

Now I need to extract the values of BBB and DDD

I tried to use “Read text file” and “List iterator” to process the file but haven’t succeed to identify that current value is what I need

When iterating through the lines of the file I would try the String Pos and String Substring actions. The String Pos action will allow you to locate the index of the “=” in the string. This index should be stored into a variable. The String Substring action allows specification of what substring is to be retrieved out of the current string. In this case I would use the “Specify Position” | “Left”, with a starting position of 0, and a Length of %SavedPosValue%. The %SavedPosValue% comes from the String Pos action.

This is what I was doing but I just saw that the output of the exe I’m running have several lines but the last line ( the one I’m interested in ) may contain %,
this is why when I tried to use a variable ( like the example you sent me ) in a message box the message box was empty.
Is there an easy way using iterator ( although lines may include % ) getting the last line or I will just use a script ?

:slight_smile: please ignore my previous message it was in the wrong topic