I have a file that its content is like this:
for example. What I am trying to do is a function taht loads this file and takes a parameter MaterialName (f.e "Mat1", "Mat2", etc). How can I make the program to read only the block that the specified name is present?Code:MatName: "Mat1" { Ambient: 1 0 0 1 Diffuse: 1 0 1 1 } MatName: "Mat2" { Ambient: 1 0 1 1 Diffuse: 0 0 0 1 }