DzInFile class creation
CJ-Studio
Posts: 26
I want to read data in native format. Trying to create DzInFile object.
Code is:
var myFileData = new DzInFile("c:/mydata.dat");
Script execution give this error:
TypeError: no constructor for DzInFile
What is wrong ?
Comments
Sorry, can't read. I don't know why that would fail - perhaps the class is no longer supported with the move to .duf/.dsf in DS4.
Edit again: no, can't be the new formats as it isn't working in DS3 either.
Richard,
Class for DS3 is DzFile. It's working OK.
DzInFile and DzOutFile are new classes described in DS4 documentation.
They are in the DS3 docs for me, and DzFile remains valid in DS4. The In/Out are for native content - allowing them to support the Author etc. fields, which a generic file will not have.