I think readFile can do it; see this blog page about specifying a decode method:
Also useful: CEP HTML Test Extension uses readFile:
Thanks for the quick reply. Yes, that is the sample code I'm working from ... I thought perhaps that it was my implementation of the code but it doesn't even work for me when directly using the 'CEP HTML Test Extension' either.
As a test, please try this yourself if you have the time:
1) Open a Premiere Pro project
2) Create a new Title element
3) Select the Title element in the project window and export it (File > Export) as a Title (.prtl) file.
4) Open the CEP HTML Test Extension and select the Native Functions tab
5) Use File APIs > File Open Dialog to get the path of the Title (.prtl) file you just exported.
6) Use File APIs > Read File with the path to your Title (.prtl) file to read the data
Is the text of your Title (.prtl) file displayed? It's not working here on my iMac ... didn't occur to me that it might be specific to my system/install, but if so, it would certainly explain why I'm having so much trouble with my code!
Thanks again for your pointers Bruce.
Didn't manage to get readFile to work but have implemented a FileReader method instead which seems to be working just fine.