Original Post
I''m using fstream to read in text using the getline function.. but how can I parse different strings from that line?
e.g.
if I have a script file something like this
Material "Marble"
{
Effect 3
.color.ambient = 0.3 0.3 0.3
.color.diffuse = 0.5 0.5 0.5
.texture[0].file = "textures\marble.tga"
}
how do I search for the keywords?