private void initOutputFile() {

        if (this.filepath.length() != 0) {
            this.isWritingToFile = true;
        } else {
            if (Constant.APPL_OUTPUT_FILE_NAME.length() == 0) {
                this.isWritingToFile = false;
            } else {
                this.isWritingToFile = true;
                this.filepath = getFilename(Constant.APPL_OUTPUT_FILE_NAME);
            }
        }
    }