Ok, I'm quite new to Python

Michael slick_mick_00 at hotmail.com
Tue Oct 12 20:03:41 EDT 2004


But i'm a good c++ programmer.

What i want to do is parse a text file and store the information in relevant
fields:

//Text File:

*Version 200
*SCENE {
    AMBIENT_COLOUR    0.0 0.0 0.0
                }

*MATERIAL_LIST{
    *MATERIAL_COUNT 0
    }
*GEOMOBJECT {
    *NODE_NAME "obj1"
    *MESH {
        *MESH_VERTEX_LIST{
            *MESH_VERTEX    0    0 0 0
            *MESH_VERTEX    1    0 1 2
                        }
        *MESH_FACE_LIST {
            *MESH_FACE    1    2    3
                        }
                    }
        }
/* ... More GEOMOBJECTS ...*/


but I have no idea what the best way to do this is?
Any thoughts??

Many Thanks

Mike







More information about the Python-list mailing list