cancel
Showing results for 
Search instead for 
Did you mean: 

specifiying 2 line separators (CF and LF) in FCC

Former Member
0 Kudos

I need to use both CR and LF as end field separator at end of each line

i used Hex '0x0D' and '0x0A' combiantions it did not work

and also tired '0x0D0x0A' and other combinaitons also

My requiremet is to have CR+LF at end of each line

Points will be awarded

Accepted Solutions (1)

Accepted Solutions (1)

GabrielSagaya
Active Contributor
0 Kudos

public static String newline = System.getProperty("line.separator");

StringBuffer buff = new StringBuffer();

buff.append(newline).append(Line1).append(newline).append(Line2)..

String result = buff.toString();

Answers (1)

Answers (1)

GabrielSagaya
Active Contributor
0 Kudos