โ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?