cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

How to append at last in csv

akshay_patil218
New Contributor

image .

Hi team,

i need to append a tag at end of csv file, how can we do it

2 REPLIES 2

tstack
Former Employee

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?

[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.