Sorry if this is out of place -- I did a search for "Javascript" and most of the threads pertaining to javascript were in here.
Anyways, I'm wondering if it's possible to store the contents of a server-side text file into a variable.
Essentially what I am trying to do is have a list in the text file. For example:
Bear:1
John:7
Devil:13
Cat: 4
Then I would like to read the text file and get each set of variables (Bear and 1, John and 7) into an array and do something with each part of the array.
Is this possible? I realize it can be easily done through PHP, but that is not an option in this case, unfortunately.