I have a text file (currently in CSV format) as follows:
RACE,"race_human"
GENDER,"male"
AGE,30
ALIGNMENT,"align_lawful_good"
DEITY,"Old Faith"
However, I want to interpret the text file as if it were a list of variables. I.e.:
var RACE:string = "race_human";
Is there an easy way to do this, for instance reformatting the text file in the native language used by the program code?