Hello all, I have probably a stupid question.
I try to read the first 4 bytes from a file to a dword variable
But when i want to put the contents of the variable on the screen I only get a zero.
I also tried to read a byte from the file and put on the screen.
This worked fine.
I do not understand it
MDL_Name$ = "ammobox.mdl"
File_NR = 1
Ident as dword
open to read File_NR, "ammobox.mdl"
if file open(File_NR)=1
read long, File_NR, Ident
endif
close file File_NR
print "Ident "+str$(Ident)
do
loop
end
I also added the file.
Thanks in advance.
Cheers Ron.
Programming is learning