Skip to main content
manjit.1486
February 12, 2024
Question

Output text file with trailing carriage return(CRLF end of line)

  • February 12, 2024
  • 7 replies
  • 0 views

Hello,

I am opening an excel file in Notepad++ editor. In this file I see there is an end of line character added called CRLF. Please see attached for reference.

Please try to open this file in Notepad++. You can see CRLF at the end of first line. I want to add the same in second line as well. Can anyone please suggest? Adding snapshot as well.

Thanks[View:/cfs-file/__key/communityserver-discussions-components-files/15/sample.txt:320:240]

7 replies

manjit.1486
February 12, 2024

[mention:126a676c85024855948336691b0a7b92:e9ed411860ed4f2ba0265705b8793d05]  [mention:b45a4f6a20b14a008e4e0ec732a8bf98:e9ed411860ed4f2ba0265705b8793d05]   any suggestion on this?

mikes0011
Brainy
February 12, 2024

Appian typically simplifies down to just CR (carriage return i.e. char(10)) and skips the redundant LF (line feed, i.e. char(13)). 

But I'm unclear from your description what you're doing, what you're trying to accomplish, and how.  Where is this text file coming from, what is it being used for, etc?

manjit.1486
February 12, 2024

I am converting html to csv file using smart service which is working fine.

It's another requirement that customer wants to open the file in notepad ++. It should have CRLF at the end of each line.

mikes0011
Brainy
February 12, 2024
customer wants to open the file in notepad ++. It should have CRLF at the end of each line

Why is this a "requirement"?