I have a file .docx
with the following content:
The answer is:
[![equation][1]][1]
It has 2 lines: the first line is the text The answer is
and second is an equation [![equation][1]][1]
which is an image.
In python, I read the file as follows:
with open('text.docx', 'rb') as f:
c = f.read()
Is there a way to look for the character '\n' in the bytes c? So that i can break c into two part: text part and image part?