Read/Write Array to disk

Blitz3D Forums/Blitz3D Beginners Area/Read/Write Array to disk

why don't you just use writebyte and readbyte

;
;save
;

fileout=writefile(filename$)
for x=0 to 319
for y=0 to 239
   writebyte(fileout,myaray(x,y))
next
next
closefile fileout

;
;load
;

filein=readfile(filename$)
for x=0 to 319
for y=0 to 239
   myaray(x,y)=readbyte(filein)
next
next
closefile filein


so no need to convert anything to any other thing = gain of speed !!