Hi,
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);
f.read(b,1);
showmessage(inttostr(b));
f.free;
Hi,
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);
f.read(b,1);
showmessage(inttostr(b));
f.free;
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.
This topic was automatically closed 60 minutes after the last reply. New replies are no longer allowed.