Skip to main content
Question

Reading Multiple text files


I have an attribute called text_lined_data that contains 6 data columns. How do i extract that information into 6 columns and line one as header?

3 replies

danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • January 10, 2018

Hi @mortenag,

Could you share this sample data?

Thanks,

Danilo


danilo_fme
Evangelist
Forum|alt.badge.img+45
  • Evangelist
  • January 10, 2018
Are you reading a CSV file?

 

 


jdh
Contributor
Forum|alt.badge.img+28
  • Contributor
  • January 10, 2018

Instead of using a text reader, try using a CSV reader with the separator character set to ;.

If that's not possible, and the header is always consistent, you can skip the first feature, and use an attributeSplitter on the text_line_data, (;) and then manually rename the resultant list to the correct attribute names.


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