Hello,

I'm trying to read a txt file that has properties laid out in the format:
Code:
Info()
{
	Texture("textureName");
	Angle(-90.000000);
	Ambient(255.000000, 255.000000, 255.000000); //rgb
	Filter(1);
	Threshold(150);	
	Intensity(50);

	Softness(1);
	SoftnessParam(60);

	Model()
	{	
		Geometry("meshName");
	}


}
That's a part of it, at least; just property values inside parentheses and curly brackets, as strings, doubles, and ints. The trouble is, StreamReader can't recognize what's inside the parentheses as values. Google gave me some tips on how to read ini files, which just use = to sepearte variables from values, but these property files are different in that they have values inside parentheses and a few properties [Ambient(r,g,b) for example] have three values associated with them.

What makes it even more complicated is that I can't tell for sure what line any particular property will be at in the file.

In other words, I can have float Angle in my program, and I can read Angle(-90.0); from the file, but how do I then assign a value of -90.0 to the Angle float?