You can only read such files in binary mode. MS Word documents are not stored as text files.
Without code I can only guess why your program exits. Perhaps it quits at the first occurrence of a certain byte value, e.g. 0x00 or 0xFF. Maybe it crashes due to expecting text and getting binary.
Do you know how to decode MS Word documents?