Just make sure the text file is accessible through an HTTP request on the same domain and you can read it fine. Here's an example where the text file is located in the webroot.
$(function(){
$.get('/whatever.txt', function(data){
var array = data.split(',');
console.log(array);
});
});