Ok.
file game;
string[] name;
void main() {
game.open("names.txt","r");
show_game_window("crappy names");
string data=game.read(0);
string[] output=string_split(data,"
",true);
//There I'm trying to make it so the string splits on an enter. not sure if there's another keyboard command for a carrage return character
for(uint n=0;n<output.length();n++) {
names[n]=output[n];}
//the for loop should get the names from the file, according to the string_split
speaker.speak_wait(names[1]+", "+names[2]+", "+names[3]);
//this should speak the first 3 names.}
On each line of the names.txt file is a name. in theory, 1 entry in the names array is 1 name in the file. but it doesn't work. it'll just set entry 0 of the array to every single name. It's probably not a bug I'm just not sure how else to do it