Skip to main content
Trying to use an AttributeFileWriter and insert a newline within my concatenaed string. So I want the following attribute

 

 

myAttrib= 'Firsttext \\n Lasttext'

 

 

to be written to a file like this:

 

 

Firsttext

 

Lasttext

 

 

I see there is an Append-mode in FME 2013 - but I assume it should be possible to add linebreaks also to the FME2012? All help appreciated
I don't think such functionality is currently encapsulated within the AttributeFileWriter. If it is, I likewise cannot get it working.

 

 

I'd recommend the Text File writer instead if such is a possibility. Creating a pretty HTML report via the Text file could be the way if you're after writing statistics.

 

 

If you don't want to use a Writer, perhaps the Recorder can be of use.
Found a workaround. Had to use a StringReplacer to replace \\n with LN (FME-s internal code for new line) and then it worked like a charm!

Reply