Read word document (.docx) lines
Hi,
I am trying do read a word document (.docx) lines.
First, I tried with a .txt file (UTF-8) and it worked perfectly with this code:
var myTextFile = File(script_file_path + "/test.txt");
var lines = [];
myTextFile.open('r');
while (!myTextFile.eof) {
lines[lines.length] = myTextFile.readln();
}
myTextFile.close();
$.writeln(String(lines[1]));
But when I import the word document, the output from lines[] is something like this:
l"%3˜fi3V∆É—⁄öl µw%Î=ñÅì^i7+Ÿ◊‰-d&·î0fiA…6Äl4ºΩL60#µ√íÕS
Would it be a file encoding problem? How can I solve that?
Can anyone help please?
Thank you very much!
