I would recommend using a BufferedReader to read each line and then using String.split("\\s+") to separate each section. You can then evaluate the values on each line in their own respective arrays...