Hmmmm...Which is the correct place for closefile:
myfile=openfile("filename")
if myfile<>0
load some stuff
endif
closefile myfile
OR:
myfile=openfile("filename")
if myfile<>0
load some stuff
closefile myfile
endif
I'm thinking that if the file was unable to be opened then there's no need to close it (sounds obvious I know) so the second option is right, but I'm not completely certain - any help welcome ..Thanks.
myfile=openfile("filename")
if myfile<>0
load some stuff
endif
closefile myfile
OR:
myfile=openfile("filename")
if myfile<>0
load some stuff
closefile myfile
endif
I'm thinking that if the file was unable to be opened then there's no need to close it (sounds obvious I know) so the second option is right, but I'm not completely certain - any help welcome ..Thanks.