Writing type to disc

BlitzMax Forums/BlitzMax Beginners Area/Writing type to disc

Could someone give and example of storing a type on disc and then reading it back in. It seems that writeline only likes strings :)

type test
field x:int
field y:int
end type

example:test
example.x=200
example.y=300

so some way for writing that to a file and reading it back in.

Thanks again

Twisted Cube