aspose file tools*
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
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Can I write in MS Word File from FileOutputStream Constructor