Skip to main content
I seem not able to enter a newline at the end of a string whilst using attributefilwriter in append mode.

 

I use a attributecreator, i can even pick the newline symbol, but still everything is one long string without newlines. (2013 sp2)

 

Windows preview shows it correct but when i open it its not.

 

 

Is it even possible the way im using the filewriter?

 

( entering \\ln or LN does not work either)

 

 

 

...aaah if i write it to .csv rather then .txt it works...

 

 

 

tx for reading... ;)

 

Hi Gio, try inserting a CR (Carriage Return) before each Newline.

 

Takashi

I have built up a dynamic string like below

129321293220190814120724.9908436"->"File2 $(LN)":"920190814120725.1245068"->"File1$(LN)":"1293212932129321293212932

everytime this goes into the file, it should go in as a new line in places where $(LN) is specified

 

how is it done?


I have built up a dynamic string like below

129321293220190814120724.9908436"->"File2 $(LN)":"920190814120725.1245068"->"File1$(LN)":"1293212932129321293212932

everytime this goes into the file, it should go in as a new line in places where $(LN) is specified

 

how is it done?

I have tried

1. Replacing $(LN) with $(CR)

2. In the FME editor, pressing "enter Key" for a new line

 

When I open the text file, it always shown in a single line


I use an attributeFileWriter

I know the answer is in the "Target File Encoding" but which one?