Link to home
Start Free TrialLog in
Avatar of kousis
kousis

asked on

saving the file in rtf format

hi
I have copied the file using streams as rtf format.the alignment between the words in the file is perfect when it  is opened with Winword. but the same file opened with word pad,entire alignmenet changes. According to my program the spacing between words is so important. How it can be overcome.?
TIA
Avatar of mmuruganandam
mmuruganandam
Flag of United States of America image

There is nothing to do with the Java Streams.

WordPad doesnot support all the formats of Win Word.
You can save your file as different format using win word.  That is the only solution.


Regards,
Muruga
Avatar of zzynx
Hi kousis,

How about your previous question? Any input?
(https://www.experts-exchange.com/questions/20928275/find-the-index-of-the-string.html)
Avatar of kousis
kousis

ASKER

hi zzynx
mayankeagle answer is perfect for previous question
>> mayankeagle answer is perfect for previous question
OK. Then, why don't you accept it?
Kindly close that question. Either accept an answer or split points.
ASKER CERTIFIED SOLUTION
Avatar of sudhakar_koundinya
sudhakar_koundinya

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
There are several sub-standards of the RTF. The ones made with MS Word will not be readable directly by Java code. But otherwise, you should be able to read an RTF using readers. Anyway, from your other questions, I know that you were just having plain-text in a file with extension .rtf.

BTW, how about any feedback on this question? Is the problem solved? Maybe the case in this one was: word-wrapping? Perhaps you were trying to put new-lines into the file but they were not getting inserted at the correct place and due to word-wrapping in Wordpad, you were getting a different output.
points to sudhakar_koundinya
Sounds ok to me.