Part of the problem of .doc is that Microsoft never fully released all specifications of word files -- which is why 3rd party word processors like Open Office, Word Perfect, etc. all have minor problems with certain documents.
It is probably a lot easier to use RTF, which is what Microsoft used with Write/Wordpad, and MS Word 2.0.
This is a much easier markup language, and has much more complete documentation.
Anyway, for pretty much any file format description this is the place to go: http://www.wotsit.org
Hundreds upon hundreds of file format documents can be found there. Great resource.
It is probably a lot easier to use RTF, which is what Microsoft used with Write/Wordpad, and MS Word 2.0.
This is a much easier markup language, and has much more complete documentation.
Anyway, for pretty much any file format description this is the place to go: http://www.wotsit.org
Hundreds upon hundreds of file format documents can be found there. Great resource.