Skip to main content
Solved

Read Settings from Delimited Text File


bill7875
Contributor
Forum|alt.badge.img+3

I’m trying to read a text file with settings in it then, use the settings in the WS. The settings are formatted on lines like name = value. There are lines with other stuff on them like comments that I just want to ignore. The WS that I have seems to work up to the AttributeSplitter. I think it splits right because it shows 30 features created but it doesn’t fully fill the list{}. I think the list{} should have 60 items but it only has 2. The AttributeCreator just creates one attribute for the list{2}. I’m a bit confused how this should be configured. Also, if there is a better way of doing this (reading settings) then, please let me know. I have attached my WS (zipped) and my txt settings file.

AttributeCreator: only one attribute gets created ‘APP_EXIT’. 

AttributeCreator

 

Best answer by panda

Attached is the alternative solution I created.
I think reading text file as a whole, then use regular expression to get attribute you need out is easier, than try to go through each feature separately.

I hope this is helps!
 

 

View original
Did this help you find an answer to your question?

3 replies

panda
Enthusiast
Forum|alt.badge.img+18
  • Enthusiast
  • July 18, 2025

I’m not sure how you want end product to look like, But if you add List Exploder after AttributeSplitter it will take the list attribute into it’s new feature which results in 69 features. If you can provide what the final output should look like, it will help me understand what you trying to do more.
 

 


bill7875
Contributor
Forum|alt.badge.img+3
  • Author
  • Contributor
  • July 18, 2025

@panda Thank you for your reply. If I understand your question, there won’t be any output. I would like to use the values from the file in the WS processing. An example would be how I have used it in the Tester: if APP_EXIT = false then send an email. I would like to be able to use each setting’s value in that same way.


panda
Enthusiast
Forum|alt.badge.img+18
  • Enthusiast
  • Best Answer
  • July 18, 2025

Attached is the alternative solution I created.
I think reading text file as a whole, then use regular expression to get attribute you need out is easier, than try to go through each feature separately.

I hope this is helps!
 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings