Ok on a previous post I was told that having arrays was better then just loads of seperate varibles as i was having reading/writing problems in my program so ive started to do this and ive no problems in printing out the arrays and i have no problems in writing the arrays but when it comes to reading them i get the error message saying 'array does not exist'. Now if i run the program and get it to write and then get it to read everything is fine, its only when i run the program and read first do i get the error message. When i was reading the varibles first (before i turned them into arrays) i had no problems there so whats happening??
this is the read array part
opentoread (1, "dovey.txt")
for a=1 to 26
driverteam$[a]=readstring (1)
next a
closefile (1)
and this is the write part
OpenToWrite ( 1, "dovey.txt", 0 )
for a=1 to 26
writestring ( 1, driverteam$[a])
next a
CloseFile ( 1 )