Skip to main content
Solved

cant enter newline in filewriter


gio
Contributor
Forum|alt.badge.img+15
  • Contributor
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... ;)

 

Best answer by takashi

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

 

Takashi
View original
Did this help you find an answer to your question?

4 replies

takashi
Influencer
  • Best Answer
  • June 24, 2014
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?


josephjose wrote:

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?


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