class DistortReader{ BufferedReader reader; DistortReader(String filename){ reader = createReader(filename); read(); } void read(){ try { String line; // Parses each of the rest of the lines. while ((line = reader.readLine()) != null) { parseLine(line); } } catch (IOException e) { e.printStackTrace(); } } void parseLine(String line){ String[] strPieces = split(line,','); float[] pieces = new float[strPieces.length]; for (int i=0;i