Skip to main content
Question

Reading Multiple text files

  • January 10, 2018
  • 3 replies
  • 24 views

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?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

danilo_fme
Celebrity
Forum|alt.badge.img+52
  • Celebrity
  • January 10, 2018

Hi @mortenag,

Could you share this sample data?

Thanks,

Danilo


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

 

 


jdh
Contributor
Forum|alt.badge.img+40
  • 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.