Hi all,

Does anyone know how to read a .doc file with reader in java? Is it possible to read a doc file the same way you read a txt file?

Thanks in advance

You want to look on libraries like Apache POI

Member Avatar for hfx642

Not the same way at all!
A *.txt is a text file with ASCII characters.
A *.doc is a binary file where characters (bytes) (or combinations of) MAY have specific meaning.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.