Tag: 文本格式

如何在文本文件中写入时使用“制表符空间”

SimpleDateFormat formatter = new SimpleDateFormat(“ddMMyyyy_HHmmSS”); String strCurrDate = formatter.format(new java.util.Date()); String strfileNm = “Cust_Advice_” + strCurrDate + “.txt”; String strFileGenLoc = strFileLocation + “/” + strfileNm; String strQuery=”select name, age, data from basetable”; try { stmt = conn.createStatement(); System.out.println(“Query is -> ” + strQuery); rs = stmt.executeQuery(strQuery); File f = new File(strFileGenLoc); OutputStream os = […]