Oh, I'm definitely not expecting anyone to do any work for me. I was just totally stuck as to how to split the file, and I kind of assumed that was my starting place.
All I've done so far is read the file in with
BufferedReader:
import java.io.BufferedReader;
import java.io.FileReader;
import java.io.IOException;
public class Sorter {
public static void main(String[] args) {
double[][]dataarray;
try {
BufferedReader input = new BufferedReader(new FileReader("file.txt"));
}
catch(IOException e){
System.out.println("Unable to read file");
}
}
}
Some of the data pieces in the text file are doubles, some are ints. However, there are a few where there's an NA for a value, which makes it a string, so I've just realised I probably won't be able to handle this in a 2D array.
Thanks
Marcus