Reading parameters from input file

Hi.

I am trying to write a class that will be reading input parameters for the code from a text file. Let's say I have variables x,y,z somewhere in my code, I would like to read their values from the file where they should be stored in a group with specific name. For example, if the group name is #InitialCoords#, the content of the input file should look like this:

#InitialCoords#
x = 1.0;
y = 2.0;
z = 3.0;
#end#


Any ideas on how to implement it? I couldn't find much help on the web.
Thanks,

Oleks.
Topic archived. No new replies allowed.