I want to run an analysis that does “Find the line in the text file that begins with “Setting3” and extract the text after the colon on the found line” and end up with “Value 3” in my analysis. Ultimately I’ll pull about 2/3 of the lines all as separate proprty in the analysis.
I know this should be easy and I have tried several examples of similar questions on here but none seem to work exactly even if it looks like they should.
Thanks for bringing this up! In fact, I find this approach is not well-known, but it can work quite well in certain cases. Note that it can also handle file ‘sections’:
Q: lines of file "R:\myfile.txt"
A: [foo]
A: Setting1=Value1
A: Setting2=Value2
A: Setting3=Value3
A:
A: [bar]
A: Setting1=ValueA
A: Setting2=ValueB
A: Setting3=ValueC
Q: key "Setting3" of section "foo" of file "R:\myfile.txt"
A: Value3
Q: key "Setting3" of section "bar" of file "R:\myfile.txt"
A: ValueC