Sorry about that short problem description.
I am creating files where each line would be 128 bytes and should be terminated with a <CR/LF> (0D0A, designated as type H for hexadecimal).
I am creating this file in UNIX but will be used in Windows PC.
I need a platform independent way to add <CR/LF> at the end of each line.
I am using BufferedWriter for that as follows:
public void write(
String str) throws IOException {
writer.write(str);
}
I�m passing a String into the writer to write it.
I want to pass another String that will add platform independent <CR/LF> at the end.
I could do it in the write method like:
public void write(String str) throws IOException {
writer.write(str);
writer.write(<CR/LF> // ???
}
Or pass with the String to the write method that will contain the <CR/LF>.
I tried (\u000D, \u000A) to assign to a String but
java doesn�t like it.
Can you let me know how to solve this?
Thanks