Question
how to close a stream created with: stream = util.readFileIntoStream(path of textfile.txt)
- Acrobat Pro batch JavaScript
- includes the following line: stream = util.readFileIntoStream(path of textfile.txt)
- runs and completes OK
- if I then try to open textfile.txt with TextPad, I get a sharing violation
- I have to close Acrobat Pro to release the file
Question: how do I close the stream from within the batch script? Tried "stream.close()" but got a "not a function" error.