public double calcTotal(){
        double result = 0.0;
        double lineTotal = 0.0;
        int lineCount = 0;
        String filePath = "/Users/andrewho/Documents/Programming/Week16/Temperatures.csv";
        File file = new File(filePath);
        BufferedReader in = null;
        try {
            if(!file.exists()){
                throw new SecurityException();
            }
            in = new BufferedReader(new FileReader(file));
            String line;
            while((line = in.readLine()) != null){
                System.out.print(line);
                String[] temps = line.split(",");
                for(int i=0;i<temps.length;i++){
                    lineTotal = Integer.parseInt(temps[i]);
                    lineCount++;
                    totalCount++;
                }
                System.out.println("The average temperature for this line was: " + String.valueOf(lineTotal/lineCount));
                result = result + lineTotal;
                lineTotal = 0.0;
                lineCount = 0;
            }
            return result;
        } catch (SecurityException ex) {
            System.out.println("This file does not exist: " + file);
        } catch (FileNotFoundException ex){
            System.out.println("File " + file + " does not exist.");
        } catch (IOException ex) { ex.printStackTrace();
        } finally {
            closeReader(in);
        }
        return result;
    }