File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes I/O and Streams and the fly likes IO streams Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "IO streams" Watch "IO streams" New topic

IO streams

shiju rp

Joined: Feb 24, 2001
Posts: 2
can I open a file in Ms Word Format and write formatted text using Streams.Or only unformatted text can be written in java?
Sandeep Jain
Ranch Hand

Joined: Oct 25, 2000
Posts: 124
Well as far as my knowledge say, u cannot save formatted data in a file .

Sandeep Jain

Try and Try Till u succeed<br /> <br />Sandeep Jain
Carl Trusiak

Joined: Jun 13, 2000
Posts: 3340
Yes, you can write the data out in any format you want. Especially if you use OutputStreams instead of Writers. It allows you to write the data byte by byte. However, you must fully understand the format that you are writing and ensure that your application meets those specifications. A copy of the specification for Word 97 documents can be found here:

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
I agree. Here's the link:
subject: IO streams
It's not a secret anymore!