Loadvars question

Hi All,
I have a text file that holds with key/value pairs.
I’m using this code to read it in:

myFolderData = new LoadVars();
myFolderData.onLoad = function() {
photo0foldername.text = this.photo0foldername;
imagelocation = “newclientphotos/photo/”+photo0foldername.text+"/";

The text “photo0foldername.text” in the 4th line is supposed to hold the value from the text file and complete the file path - but it doesn’t work.
Can someone tell me what I am doing wrong please.
regards, Nos