I need help to read .ase files!
this is the way I do to read a line and save it for later use:
void LoadAse(char *filename)
{
char buff[200];
ifstream fin:
fin.open(filename);
do {
fin.getline(buff, sizeof(buff));
if(strcmp("*MESH_VERTEX", buff) == 0)
sscanf(buff, "*MESH_VERTEX %f %f %f", &object.x, &object.y, &object.z);
}while(fin.eof() =! 1)
this line : sscanf(buff, "*MESH_VERTEX %f %f %f", &object.x, &object.y, &object.z); doesn´t work because the *MESH_VERTEX isn´t at the start of the line how to fix this ?



I got a step on the way but I can´t read the Faces now
I don´t know whats wrong. I have found a source for reading the ase files. they use fscanf instead of sscanf as I do I have tried to make it almost the same as they have except that I use sscanf and read from a buffer instead of fscanf.