Reading FileStream

I know that all variables are variants. but is there any trick to read TFileStream directly in script

  f := tfilestream.create('C:\TEMP\onefile.bin',0);,1);

Read deals with pointers, which are indeed not supported by Scripter - unless maybe with some creative workarounds. I would refrain from trying to do so and simply create some custom virtual methods in TStream that do what you want, for example, ReadInteger or something like that.

1 Like

This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.