First, make sure you know what criteria and details/parameters about your objects in the world need to be saved.
perhaps your world is popuated with trees. You may need to know
Tree Size
Tree No. of Branches
Tree Colour
Tree Leaf Shape
Tree Location
Once you have all this data, as fall_x suggests, you should store this data in an array or a Type.
For instance
Type Tree
Field Size
Field Branches
Field Color$
Field Leaf$
Field Loc_X
Field Loc_Y
Field Loc_Z
End Type
When it comes to Saving, Im not 100% on this, because I havent used the file commands for a while, but the general gist is:
[code]
Filename=OPenfile$("Saved_Folder\Savedgame.blah")
For Saver.Tree = Each Tree
WriteLine(Filename)=Saver\Size
WriteLine(Filename)=Saver\Branches
WriteLine(Filename)=Saver\Colour$
WriteLine(Filename)=Saver\Leaf
WriteLine(Filename)=Saver\Loc_X
WriteLine(Filename)=Saver\Loc_Y
WriteLine(Filename)=Saver\Loc_Z
Next
CloseFile(Filename)
[/codebox]
So at any time, levels can then be loaded in with the similar instructions (again, sorry if the filehandling syntax isnt right!):
Filename=Openfile$("Saved_Folder\Savedgame.blah")
Repeat
Loader.Tree = New Tree
Loader\Size=ReadLine(Filename)
Loader\Branches=ReadLine(Filename)
Loader\Colour$=ReadLine(Filename)
Loader\Leaf$=ReadLine(Filename)
Loader\Loc_X=ReadLine(Filename)
Loader\Loc_Y=ReadLine(Filename)
Loader\Loc_Z=ReadLine(Filename)
Until Eof (Filename)