This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes Can I write in MS Word File from FileOutputStream Constructor Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Can I write in MS Word File from FileOutputStream Constructor" Watch "Can I write in MS Word File from FileOutputStream Constructor" New topic
Author

Can I write in MS Word File from FileOutputStream Constructor

Kashif Nayani
Greenhorn

Joined: Jul 04, 2001
Posts: 2
Can I write in MS word file from FileOutputStream Constructor or any other constructor
I want write and edit characters in Ms world File. How can I do this with java.
karl koch
Ranch Hand

Joined: May 25, 2001
Posts: 388
hi,
you can read and write to a .doc file like any other file. but the text that appears in ms-word is not just clear-text in the .doc file. it is embeded in formating (color/font/size..) stuff. so you first need to understand the structure of word files before you can just go and change something in there (and this is quite complicate i assume).
but as a workaround: MS-Word is (like all text editors) to open txt files ....not that nice but perhaps it helps
karl
 
wood burning stoves
 
subject: Can I write in MS Word File from FileOutputStream Constructor