Well, the reason why the code you've posted here does not work is easy. You've forgotten to terminate the string in loadmesh():
loadmesh ("media\vorton.x)
should be:
LoadMesh("media\vorton.x")
And you can drop the 'a' in 'Next a'
//PetBom
loadmesh ("media\vorton.x)
should be:
LoadMesh("media\vorton.x")
And you can drop the 'a' in 'Next a'
//PetBom