How can I export highlight text to a file?
Closed due to the fact that it is necessary to reformulate the question so that it was possible to give an objectively correct answer to the participants of HamSter , Bald , Barmaley , user194374, Jean-Claude on Dec 28 '16 at 7:38 .
The question gives rise to endless debates and discussions based not on knowledge, but on opinions. To get an answer, rephrase your question so that it can be given an unambiguously correct answer, or delete the question altogether. If the question can be reformulated according to the rules set out in the certificate , edit it .
|
1 answer
take the text, transfer it to json, select what you need and dispose of it as intended ... if you get the text from the file to export, select the file, make the json add text to json and create a new copy of the file ... Export a Json object to a text File
var txtFile = "/tmp/test.txt"; var file = new File(txtFile,"write"); var str = JSON.stringify(JsonExport); log("opening file..."); file.open(); log("writing file.."); file.writeline(str); file.close(); |