Here is the peice of code that I am having trouble with:
open to read 1,"settings.cfg"
repeat
read byte 1,cByte
cByte$=chr$(cByte)
if cByte$="="
cSet$=cString$
cString$=""
repeat
read byte 1,cByte
cByte$=chr$(cByte)
if cByte$=";"
else
cString$=cString$+cByte$
endif
until cByte$=";"
cVal$=cString$
endif
if cByte$=";"
if cSet$="display_x" then dispx$=cVal$
if cSet$="display_y" then dispy$=cVal$
if cSet$="display_d" then dispd$=cVal$
if cSet$="vsync" then vsync$=cVal$
cString$=""
else
cString$=cString$+cByte$
endif
until cString$="endfile"
wait key
set display mode dispx$,dispy$,dispd$,vsync$
The SET DISPLAY MODE command will not accept the STRINGS. Is there any way I can convert the STRINGS into INTEGERS or force it to accept the STRINGS. When I try to replace all of the $ symbols with # symbols to indicate that they are INTEGERS, the program compiles correctly but the values of dispx#, dispy#, dispd#, and vsync# are reset to 0 instead of the values that were there when they were in STRING format.
I hope I made sense

Can anyone help me with this problem?
Oh yeah, here is a copy of the file that it is reading from:
display_x=1280;display_y=720;display_d=32;vsync=1;endfile;
The wisest leader is the one that can avoid the conflict in the first place.