static String fileTempPath= System.getProperty("java.io.tmpdir"); static Date ch=new java.sql.Date(System.currentTimeMillis()); static File tempFile=new File(fileTempPath+"PurgeLog"+ch + ".log"); static PrintWriter out; public static void main(String[] args) { out=new PrintWriter(tempFile); out.println("main started:") out.println("heloooo:") out.close(); } }
append
FileWriter out = new FileWriter(fileTempPath+"PurgeLog"+ch + ".log", true); out.write("main started:\n"); out.write("heloooo:\n"); out.close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)