Skip to main content
Question

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


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?

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+17
  • 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.


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