how to use “tab space” while writing in text file

后端 未结 3 801
失恋的感觉
失恋的感觉 2020-12-18 18:22
 SimpleDateFormat formatter = new SimpleDateFormat(\"ddMMyyyy_HHmmSS\");
 String strCurrDate = formatter.format(new java.util.Date());
 String strfileNm = \"Cust_Adv         


        
3条回答
  •  [愿得一人]
    2020-12-18 18:38

    Use "\t". That's the tab space character.

    You can find a list of many of the Java escape characters here: http://java.sun.com/docs/books/tutorial/java/data/characters.html

提交回复
热议问题