Word document isn't stored conveniently like a text file (it's more like xml / binary file), so you can't just use echo and expects it to output the human readable portion of the docx file.
There's a library that could do what you want, but it takes only doc file
Docvert