How would I write the display mode checklist to a file? So far all I've got is:
if file exist("res.tmp") = 1
delete file "res.tmp"
endif
open to write 1, "res.tmp"
perform checklist for display modes
write file 1, checklist quantity()
for t=1 to checklist quantity()
write byte 1, t
write long 1, checklist value a(t)
write long 1, checklist value b(t)
write long 1, checklist value c(t)
next t
close file 1
---------------------
This doesn't work! All I get is gibberish! Should I use WRITE STRING? But how would I change the value into a string?