what im trying to do (very basically) is this ...
... in its simplest form. Of course I`d want to write out an array of said type etc (its just to show the principle here etc). as it is i have to run thru the whole type saving each individual "bit"
Code (glbasic) Select
TYPE Tthing
x
y
z
a$
b$
c$
ENDTYPE
LOCAL temp AS Tthing
LOCAL ok
temp.x = 99
temp.y = 50
temp.z = 1
temp.a$= "abc"
temp.b$= "123"
temp.c$= "test"
ok = OPENFILE(0, "file.dat", FALSE)
WRITE 0,temp
CLOSEFILE
ok = OPENFILE(0, "file.dat",TRUE)
READ 0, temp
CLOSEFILE
... in its simplest form. Of course I`d want to write out an array of said type etc (its just to show the principle here etc). as it is i have to run thru the whole type saving each individual "bit"