Question

add new empty line in text file specific location


Badge

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


5 replies

Userlevel 2
Badge +17
What is the criteria to determine where an empty line should be added?

 

Badge
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

 

Userlevel 2
Badge +17

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).

Badge

Hi,

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

Regards

Userlevel 2
Badge +17

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?

Reply