DzInFile class creation

CJ-StudioCJ-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

  • Richard HaseltineRichard Haseltine Posts: 100,941
    edited February 2013

    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.

    Post edited by Richard Haseltine on
  • CJ-StudioCJ-Studio Posts: 26
    edited December 1969

    Richard,
    Class for DS3 is DzFile. It's working OK.
    DzInFile and DzOutFile are new classes described in DS4 documentation.

  • Richard HaseltineRichard Haseltine Posts: 100,941
    edited December 1969

    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.

Sign In or Register to comment.