Ok, here's something very quick for you but it should be what you need;
;
; Simple file IO Example. By Shockwave^DBF
;
;------------------------------------------
Graphics 800,600,0,2
Dim STORE (4); space to read some data into
Dim FROMFILE (4); space to read a file into
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;read the data from data statements;
For A=1 To 4
Read STORE(A)
Next
;CREATE A FILE
FILE_OUT = WriteFile("DATA.DAT")
;write the data into the file;
For A=1 To 4
WriteInt (FILE_OUT , STORE(A)); NB THIS COULD ALSO BE WRITEBYTE AND WRITESTRING TOO, ALL IN THE SAME FILE
Next
; ****ALWAYS CLOSE THE FILE WHEN YOU'VE FINISHED WITH IT!****
CloseFile(FILE_OUT)
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;OPEN THE FILE AGAIN FOR READING;
FILE_IN = ReadFile ("DATA.DAT")
;Read the data from the file;
For A=1 To 4
FROMFILE(A)=ReadInt(FILE_IN) ; COULD ALSO BE READBYTE OR READSTRING
Next
; ****AGAIN MAKE SURE YOU CLOSE THE FILE WHEN YOU'VE FINISHED WITH IT****
CloseFile (FILE_IN)
;%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
;OUTPUT THE RESULT;
Text 0,0,"ESCAPE TO EXIT, DATA READ FROM FILE IS BELOW;"
For A=1 To 4
Text 0,A*10,FROMFILE(A)
Next
While Not KeyDown(1)
Wend
Data 23,24,2000,100
Nb. You don't need to worry about the file pointer, it is managed by Blitz for you in a pretty similar way to data statements. If you think of it like that then you won't go far wrong. You do have more control over it than that if you want, but for your purposes this source should be enough information for now.