ok so here is my current code, but for some reason the camera goes to a certain location right away then (i have camera position displaying) the camera position changes to strange numbers like 7.00023-02 constantly until all log files are read. whats wrong lol
if KeyState(41)
if file exist("log\log"+str$(intt)+".txt") then delete file "log\log"+str$(intt)+".txt"
open to write 1,"log\log"+str$(intt)+".txt"
if file open(1)=1
`write string 1,"camera position x:"
write string 1,str$(camera position x())
`write string 1,"camera position y:"
write string 1,str$(camera position y())
`write string 1,"camera position z:"
write string 1,str$(camera position z())
`write string 1,"camera angle x:"
write string 1,str$(camera angle x())
`write string 1,"camera angle y:"
write string 1,str$(camera angle y())
`write string 1,"camera angle z:"
write string 1,str$(camera angle z())
intt=intt+1
endif
close file 1
ENDIF
if KeyState(199)
go=1
keystate199=0
ENDIF
if go=1 and keystate199<intt
open to read 1, "log\log"+str$(keystate199)+".txt"
read float 1, abc1#
read float 1, abc2#
read float 1, abc3#
read float 1, abc4#
read float 1, abc5#
read float 1, abc6#
close file 1
position camera abc1#,abc2#,abc3#
keystate199=keystate199+1
ENDIF
EDIT: wrote strings, read float.. gonna fix