local fileout:tstream=writefile("c:\bla.dat") if fileout writebyte fileout,0 writeshort fileout,1000 writeint fileout,100000 writelong fileout,1000000000 writefloat fileout,12.34 writedouble fileout,12.346789123 closefile fileout endif
This writes all the stuff after eachother. For loading use readfile, readbyte, readshort etc. See the manual.