Reading from a file

Blitz3D Forums/Blitz3D Programming/Reading from a file

Well, you txt file would contain say:

"models\gun.b3d"
"models\player.b3d"
"models\crate.b3d"

and you would load them into strings:

a$ = readline() ; what ever the stream name is

(a$ would = "models\gun.b3d")

temp = loadmesh(a$)


Something like that. Just basically make sure the code you use to load your file, is laided out the same way as the code so save it.