This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can I write in MS Word File from FileOutputStream Constructor

 
Kashif Nayani
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 388
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic