| Author |
issue in converting "\n" to a new line in the .rtf file using java code.
|
Priya Sri
Ranch Hand
Joined: Mar 30, 2004
Posts: 84
|
|
I'm putting different lines in the screen and trying to convert "\n" to new line in the RTF document but i'm getting as one line .rtf document not recognizing the new line char.
I'm converting each char to byte and putting in the byte array
and using the File Output Stream i'm printing on the document.
|
 |
Priya Sri
Ranch Hand
Joined: Mar 30, 2004
Posts: 84
|
|
I tried with BufferedWriter as well to write newline. But that is not working with .rtf files.
Can any one help me on this.
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19216
|
|
|
RTF is different from text files. See AccessingFileFormats.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: issue in converting "\n" to a new line in the .rtf file using java code.
|
|
|