A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Read RTF File from Java
Joined: Mar 31, 2008
Mar 31, 2008 01:47:00
How cani read RTF file from
Joined: Mar 22, 2005
Mar 31, 2008 02:29:00
Welcome to JavaRanch.
That depends on what you want to do with the file contents. Fundamentally, RTF is just a text file, so you can use the File,
and various Reader classes in the java.io package.
If you want to display RTF in a Swing component, have a look at
this sample application
which does exactly that.
Ping & DNS, my free Android app for network diagnostics
Joined: Sep 20, 2005
Mar 31, 2008 13:01:00
Originally posted by sunilkumarbit choudhary:
How can i read RTF file from java
Keep in mind that RTF is not really a standard. Microsoft documents it poorly and amends it whenever it sees fit. That said, reading an RTF file can be as easy as:
jep = new
I hope this is helpful.
It is sorta covered in the
JavaRanch Style Guide
subject: Read RTF File from Java
Does JPG Java Class Exist
Coverting RTF to DOC
how to read rtf file and display in console?
How to read cell content from '*.rtf' file?
How To Read RTF file in JAVA? Using iText?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013