Here you can find the source of closeReportFile()
static void closeReportFile() throws IOException
//package com.java2s; //License from project: Apache License import java.io.BufferedWriter; import java.io.File; import java.io.FileWriter; import java.io.IOException; import java.io.PrintWriter; public class Main { private static String oreppath = ""; private static boolean wor = false; static void closeReportFile() throws IOException { if (wor) { return; }//from www.j a va 2 s .co m File orepfile = new File(oreppath); try (PrintWriter pw = new PrintWriter(new BufferedWriter(new FileWriter(orepfile, true)))) { pw.println("</REPORT>"); } } }