[resolved] How i can remove a line break in a csv?

One Star

[resolved] How i can remove a line break in a csv?

Hello community!
I'm trying remove a linea break in a csv file, but in my Map i can't do this with usual java code, i'm little newby in talenD world, can you help me please?
Thanks!

Accepted Solutions
Moderator

Re: [resolved] How i can remove a line break in a csv?

Hi,
Or you can take a try for this solution: tFileInputFullRow-->tReplace.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.

All Replies
One Star

Re: [resolved] How i can remove a line break in a csv?

Hi Vlopez... I don't know what you tried in Java, but here's something that would work in tMap:
row1.columnName.replaceAll("\\r\\n|\\r|\\n", " ")
See other options if this does not do it - http://stackoverflow.com/questions/2163045/how-to-remove-line-breaks-from-a-file-in-java
Moderator

Re: [resolved] How i can remove a line break in a csv?

Hi,
Or you can take a try for this solution: tFileInputFullRow-->tReplace.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] How i can remove a line break in a csv?

Thanks guys, both for fast reply.
I try the solution offered by xdshi and this works.

Thanks so much!
Moderator

Re: [resolved] How i can remove a line break in a csv?

Hi,
Glad you could solve the issue. Could you please click the "Set this topic as resolved"? Feel free let me know if there is any further help we can give.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.
One Star

Re: [resolved] How i can remove a line break in a csv?

hi! i click this link but don't work Smiley Frustrated, what i should do?
Moderator

Re: [resolved] How i can remove a line break in a csv?

Hi,
I have marked it as resolved. Thanks for your feedback.
Best regards
Sabrina
--
Don't forget to give kudos when a reply is helpful and click Accept the solution when you think you're good with it.