Skip to main content
Solved

cant enter newline in filewriter

  • June 24, 2014
  • 4 replies
  • 80 views

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

4 replies

takashi
Celebrity
  • Best Answer
  • June 24, 2014
Hi Gio, try inserting a CR (Carriage Return) before each Newline.

 

Takashi

  • August 14, 2019

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?


  • August 14, 2019

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


  • August 14, 2019

I use an attributeFileWriter

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