10-05-2020 02:49 PM
Hi,
What should I add to this to remove CR and LF while generating a text file using File Writer .
“Test/Hello_”+ Date.now().toLocaleDateString(‘{“format”:“MMM”}’).toUpperCase()+Date.now().toLocaleDateString(‘{“format”:“YYYY”}’)+“.txt”
10-05-2020 10:35 PM
@groverarena Not sure how did you get CR and LF here. You can use ‘Test/Hello_’+Date.now().toLocaleDateTimeString({format: “MMMYYYY”}).toUpperCase()+‘.txt’ to minimize your query.
10-06-2020 07:53 AM
@Supratim, I didn’t understand your response. I am talking about removing Carriage Return and Line Feeds from the text file. The above query is working fine
10-06-2020 10:17 PM
Ok. Then try this-
$content.replaceAll(‘\r\n’, ‘’)
10-07-2020 08:53 AM
Where do I add this in my pipeline?