* @param filename The name of the file to read.
* @return The array of values in the file.
*/
public static double[] getArray(String filename) {
String raw = getFileContents(filename);
StringTokenizer st = new StringTokenizer(raw);
double[] array = new double[st.countTokens()];
int i = 0;
while (st.hasMoreTokens()) {
array[i++] = Double.parseDouble(st.nextToken());
}
return array;
}