Reading xyz values from a file

Blitz3D Forums/Blitz3D Programming/Reading xyz values from a file

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

I'm trying to make a file contain xyz values that will put lights at certain positions. The way I'm doing isn't working because it doesn't position it properly.
x# = Left$(command$,Instr(command$,",") - 1)
y# = Mid$(command$,Len(x#),Instr(command$,","))
z# = Mid$(command$,Len(y#) + 1)