Here ya go
Following modified & works, main problem is that you had the autocam on. Also tidied the code a little & put comments in where required.
rem RANDOMISE SEED VALUE OF RND
randomize timer()
Rem first time
make object cube 1,20
make object cube 2,20
position object 1,rnd(500),0,rnd(500)
position object 2,rnd(500),0,rnd(500)
rem SET AUTOCAM TO OFF, OTHERWISE WILL POINT TO CREATED OBJECTS
autocam off
position camera -100,200,-100
point camera 250,0,250
if file exist("data.abc") then delete file "data.abc"
open to write 1,"data.abc"
rem OBJECT POSITIONS ARE FLOATS NOT WORDS
rem Not so important but start memblocks at 0 easier to read
rem 9 FLOATS @ 4 BYTES EACH=36 BYTES
make memblock 1,36
write memblock float 1,0,object position x(1)
write memblock float 1,4,object position y(1)
write memblock float 1,8,object position z(1)
write memblock float 1,12,object position x(2)
write memblock float 1,16,object position y(2)
write memblock float 1,20,object position z(2)
write memblock float 1,24,camera position x()
write memblock float 1,28,camera position y()
write memblock float 1,32,camera position z()
write memblock 1,1
suspend for key
Rem Second time
delete memblock 1
delete object 1
delete object 2
close file 1
open to read 1,"data.abc"
read memblock 1,1
make object cube 1,20
make object cube 2,20
position object 1,memblock float(1,0),memblock float(1,4),memblock float(1,8)
position object 2,memblock float(1,12),memblock float(1,16),memblock float(1,20)
position camera memblock float(1,24),memblock float(1,28),memblock float(1,32)
suspend for key
Twynklet