Quote: "1. You can't open the file and read it, it's just garbage. (not so good)"
What do you mean "you can't open the file and read it"? In all my test programs it works great!
`store numbers
a# = 1.526
b# = 2.568
c# = 3.846
`display numbers
print "before:"
print a#
print b#
print c#
print " "
print " "
`read data to file
if file exist("Data.dat") > 0 then delete file "Data.dat"
open to write 1,"Data.dat"
write float 1,a#
write float 1,b#
write float 1,c#
close file 1
`set all numbers to 0.0
a# = 0.0
b# = 0.0
c# = 0.0
`load data from file
open to read 1,"Data.dat"
read float 1,a#
read float 1,b#
read float 1,c#
close file 1
`display numbers
print "after:"
print a#
print b#
print c#
print " "
print "press any key to delete the file"
suspend for key
`delete file
if file exist("Data.dat") > 0
delete file "Data.dat"
endif
`end program
It writes, reads... Anything you want.
Immunity and Annihalation makes Immunihalation...