Hi there,
As ReD_eYe said you could save that value as a string. But because you have saved the value as a byte that's why it looks like that. So nothing to worry about.
if file exist ("save/settings.dat")
goto read_file
else
goto write_file
endif
read_file:
open to read 1, "save/settings.dat"
read byte 1, screen_x_res
read byte 1, screen_y_res
read byte 1, mode
close file 1
set display mode screen_x_res,screen_y_res,mode
goto main_menu
write_file:
screen_x_res = 800
screen_y_res = 600
mode = 16
open to write 1, "save/settings.dat"
write byte 1, screen_x_res
write byte 1, screen_y_res
write byte 1, mode
close file 1
set display mode screen_x_res,screen_y_res,mode
goto main_menu
main_menu:
do
cls
print screen_x_res
print screen_y_res
print mode
if inkey$() = "q" then end
loop
I typed a quick example and works.
So I hope that helps ya.