Skip to main content

Hello FME Community,

 

I am using a 'StringConcatenator' and a 'Text Writer' to create a text file. I intend to add two separate texts as the header and footer.

 

Is there a way to add these texts without duplication?

 

One way to do this:

  • Sampler to get a single line feature from the data features and use this feature to create the header and the footer features.
  • AttributeCreators on the header, data and footer streams with an attribute "order" with the values 1, 2 or 3.
  • Sorter to sort on the attribute order.
  • Connect to the writer.

One way to do this:

  • Sampler to get a single line feature from the data features and use this feature to create the header and the footer features.
  • AttributeCreators on the header, data and footer streams with an attribute "order" with the values 1, 2 or 3.
  • Sorter to sort on the attribute order.
  • Connect to the writer.

@nielsgerrits​ Thank you very much.

It worked.


Reply