Hello. I'm not a programmer but I didn't think this would be that difficult. I'm trying to figure out how to pull two values from a text file (not using XML) that would be a friendly, front-end name, and a corresponding URL or file path. For example my text file might look like this (friendly name, corresponding URL, one for each line):
Google,http://www.google.com
Microsoft,http://www.microsoft.com
Yahoo,http://www.yahoo.com
...
Or
myFile.txt,file:///filelocation
myOtherFile.txt,file:///otherFileLocation
...
I imagine I'd read this into an array. I want to load the friendly name into the combo box so that when a user clicks it, it opens the corresponding URL or file path. Is there an easy way to do this, or perhaps a better way than what I'm thinking, where I could use a text file? If I do a text file then the user can update it or I can maintain a master copy, and I wouldn't have to update the code.
Thank you in advance.
Google,http://www.google.com
Microsoft,http://www.microsoft.com
Yahoo,http://www.yahoo.com
...
Or
myFile.txt,file:///filelocation
myOtherFile.txt,file:///otherFileLocation
...
I imagine I'd read this into an array. I want to load the friendly name into the combo box so that when a user clicks it, it opens the corresponding URL or file path. Is there an easy way to do this, or perhaps a better way than what I'm thinking, where I could use a text file? If I do a text file then the user can update it or I can maintain a master copy, and I wouldn't have to update the code.
Thank you in advance.