Hey, use TEXT for storing your strings

Code:
TEXT* dialog = {
	strings = 2;
}

function get_file(){
	int eof = 0;
	int count = 0;
	while(eof != -1){
		eof = file_str_read(fhandle, test_str);
		(dialog.pstring)[count] = test_str;
		count += 1;
	}
}


Hope this helps