What's up with the parentheses? I can't tell what you're trying to do. But then it doesn't really matter, because pretty much all that stuff you should be doing apart from the file handling stuff. Scaling and positioning entities has nothing to do with file IO after all.
Use WriteString or WriteLine to write out the object's filename. Then when you read the file back, pass that filename to LoadMesh to load the model. Something like:
(writing the level file)
level=WriteFile("level.lvl")
WriteLine(level,"object.3ds")
CloseFile(level)
(loading the level)
level=ReadFile("level.lvl")
lvlMesh$=ReadLine(level)
LoadMesh(lvlMesh)
CloseFile(level)
Use WriteString or WriteLine to write out the object's filename. Then when you read the file back, pass that filename to LoadMesh to load the model. Something like:
(writing the level file)
level=WriteFile("level.lvl")
WriteLine(level,"object.3ds")
CloseFile(level)
(loading the level)
level=ReadFile("level.lvl")
lvlMesh$=ReadLine(level)
LoadMesh(lvlMesh)
CloseFile(level)