This is correct behavior. RTF is a specific file format. You can't just append two files together. One possibility may be to use javax.swing.text.rtf.RTFEditorKit to read the existing documents in, write some code to merge the two Document instances then use the RTFEditorKit to write the file back out. [ August 12, 2005: Message edited by: Joe Ess ]
Thanks for the response. I used the RTFEditorKit to read the rtf document from an input file and wrote the contents of the document into the output rtf file. The content of the files are appended but the formatting (The contents were tabulated as rows-columns in a grid) is lost. Is there an option to keep the formatting as is?