public void checkFile() {
        if (openedFile == false) {
            if ((summaryFileName != null) && (fpath != null)) {
                String fileName = fpath + "/" + summaryFileName;
            
                System.out.println("Writing summary file to " + fileName);
                summaryFile = new File(fileName);
                if (w == null) {
                    try {
                    w = new PrintWriter(summaryFile);
                    } catch (IOException E) {
                    throw new RuntimeException(E);
                    }
                    openedFile = true;
                    w.println("************************************************");
                    w.println("*          Luca Calibration Summary            *");
                    w.println("************************************************\n");
                }
            }
        }
    }