Skip to main content
Question

which transformer would simply add a single line of text to line 1 of a text file?

  • January 23, 2017
  • 2 replies
  • 20 views

Forum|alt.badge.img

I have 100's of ASCII file containing coordinates which have no column names. I need to add "X Y Z" to the first line of every file. How could I do this with fme 2016?

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.

2 replies

david_r
Celebrity
  • January 23, 2017

One possible solution is to use a Text File reader and specify to read the whole file at once:

Before a Text File writer, insert an AttributeCreator (or something similar) that modifies text_line_data:


itay
Supporter
Forum|alt.badge.img+18
  • Supporter
  • January 23, 2017

Hi @robertdbuckley,

Another possible solution is the Column Aligned Text (CAT), where you can define the columns names in the reader parameters.