IncludeBinary not work

Just starting out? Need help? Post your questions and find answers here.
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 205
Joined: Thu Dec 28, 2023 9:04 pm

IncludeBinary not work

Post by rndrei »

Why doesn't it work?

Code: Select all

OpenFile(#FILE,?file)
DataSection 
file:
IncludeBinary "file.bin"  
Enddatasection
User avatar
jacdelad
Addict
Addict
Posts: 2062
Joined: Wed Feb 03, 2021 12:46 pm
Location: Riesa

Re: IncludeBinary not work

Post by jacdelad »

OpenFile is for files on drives. The file included by IncludeBinary is already in memory, so simply read from the pointer.
Good morning, that's a nice tnetennba!

PureBasic 6.21/Windows 11 x64/Ryzen 7900X/32GB RAM/3TB SSD
Synology DS1821+/2*DX517, 164TB+82TB+28TB+2TB SSD
User avatar
rndrei
Enthusiast
Enthusiast
Posts: 205
Joined: Thu Dec 28, 2023 9:04 pm

Re: IncludeBinary not work

Post by rndrei »

OK, thanks!
Post Reply