Page 1 of 1

IncludeBinary not work

Posted: Tue Mar 25, 2025 5:29 am
by rndrei
Why doesn't it work?

Code: Select all

OpenFile(#FILE,?file)
DataSection 
file:
IncludeBinary "file.bin"  
Enddatasection

Re: IncludeBinary not work

Posted: Tue Mar 25, 2025 6:33 am
by jacdelad
OpenFile is for files on drives. The file included by IncludeBinary is already in memory, so simply read from the pointer.

Re: IncludeBinary not work

Posted: Tue Mar 25, 2025 8:15 am
by rndrei
OK, thanks!