Not true about having to store it temporarily. an old way I did it:
open to read 1,"WeaponsDemoObjects.vxm"
read long 1,TotalWeaps
if TotalWeaps <= 0 then exit prompt "Read Error","Error Reading File DemoObjects.xvm" : end
for LoadCount = 1 to TotalWeaps
read memblock 1,1
make mesh from memblock 1,1
read memblock 1,1
make image from memblock 1,1
make object LoadCount,1,1
read byte 1,JunkCheck
if JunkCheck <> asc("254") then exit prompt "Read Error","Error Reading File DemoObjects.xvm" : end
next LoadCount
close file 1
This will read a number to see how many objects are in this file, then read a memblock containing a mesh, another memblock containing an image, an object is made from this mesh and given this texture. Finally a junk byte is thrown in to confuse other programs that tried to read my file
Whatever you're trying to store, put them in a memblock first, then dump the memblock in a file, additionally, put some junk in, just make sure your program knows to ignore it!
This is by no means secure, but the average user now can't get to your media... A determined user will still be able to get through though
...maybe one day I'll finish a project
