07-31-2019 12:36 AM
.
Hi team,
i need to append a tag at end of csv file, how can we do it
07-31-2019 02:31 PM
If you’re writing to a file, one option would be to put a Mapper and a second FileWriter after the first FileWriter. The second writer would then be configured to Append to the file instead of overwriting it. The Mapper would be configured with a binary output view and maps the string </import>
to $content
. However, not all filesystems support appending to the file.
I have to ask, though… Based on your screenshot, it looks like you’re writing XML? Can you use an XML Formatter? Or, is it XML encapsulated in CSV?
08-01-2019 05:40 AM
[quote=“tstack, post:2, topic:5774”]
a file, one option would be to put a Mapper and a second FileWriter after the first FileWriter. The second writer would then be configured to Append to the file instead of overwriting it. The Mapper would be configured with a binary output view and maps the string </import>
to $content
. However, not all filesystems support appending to the file.
I have to ask, though… Based on your s
ita XML formatted csv file.