Skip to main content
Question

add new empty line in text file specific location

  • July 3, 2018
  • 5 replies
  • 64 views

Forum|alt.badge.img

Hi,

Trying to figure out how to add an empty line (commas are fine) into a file at specific locations

here is an example i need:

10-1110011-1220012-1310013-14400

Any thoughts?

Regards

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.

5 replies

takashi
Celebrity
  • July 3, 2018
What is the criteria to determine where an empty line should be added?

 


Forum|alt.badge.img
  • Author
  • July 3, 2018
What is the criteria to determine where an empty line should be added?

 

 

the above example is time based so where it moves from AM to PM a break in the data for easy readability is required.

 

 

Thanks

 


takashi
Celebrity
  • July 3, 2018

Hi @fme_it, there should be several ways. Just an example.

Set the runtime order at the Passed port appropriately (first to AttibuteCreator, second to Junction).


Forum|alt.badge.img
  • Author
  • July 3, 2018

Hi,

Thanks for the suggestion. It almost works, occasionally it comes out before the line but only once or twice.

Regards


takashi
Celebrity
  • July 3, 2018

Hi,

Thanks for the suggestion. It almost works, occasionally it comes out before the line but only once or twice.

Regards

I think that the workflow inserts an empty line before every text that starts with "12". Wasn't it what you needed?