Reflection is your friend:
for (int count = 0;count < thing.Length; count++)
{
FieldInfo info = this.GetType().GetField(thing[count], BindingFlags.NonPublic);
info.SetValue(this, input.readline());
}
Note that with BindingFlags.NonPublic I assume that both variables are declared private. If not, take a look at the help for the GetField method and the BindingFlags enumeration and you should be able to figure out what needs to be changed.
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning." - Rick Cook
www.troschuetz.de