I have here is snippet of the code from the notecard
Channel = 75
and here is the two sections I am using it in
string Channelinit(){ // reset configuration values to default Channel = "90"; if(llGetInventoryType(configurationNotecardName) != INVENTORY_NOTECARD) { // notify owner of missing file llOwnerSay("Missing inventory notecard: " + configurationNotecardName); // don't do anything else return; } // initialize to start reading from first line (which is 0) line = 0; notecardQueryId = llGetNotecardLine(configurationNotecardName, line);}processConfiguration(string data){ // if we are at the end of the file if(data == EOF) { // notify the owner llOwnerSay("We are done reading the configuration"); // notify what was read llOwnerSay("The Channel is: " + Channel); // do not do anything else return; } // if we are not working with a blank line if(data != "") { // if the line does not begin with a comment if(llSubStringIndex(data, "#") != 0) { // find first equal sign integer i = llSubStringIndex(data, "="); // if line contains equal sign if(i != -1) { // get name of name/value pair string name = llGetSubString(data, 0, i - 1); // get value of name/value pair string value = llGetSubString(data, i + 1, -1); // trim name list temp = llParseString2List(name, [" "], []); name = llDumpList2String(temp, " "); // make name lowercase (case insensitive) name = llToLower(name); // trim value temp = llParseString2List(value, [" "], []); value = llDumpList2String(temp, " "); // name if(name == "Channel") Channel = value; // unknown name else llOwnerSay("Unknown configuration value: " + name + " on line " + (string)line); } // line does not contain equal sign else { llOwnerSay("Configuration could not be read on line " + (string)line); } } } // read the next line notecardQueryId = llGetNotecardLine(configurationNotecardName, ++line);} state_entry() { init(); llListen(Channel, "",llDetectedKey(0), ""); }