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

后端 未结 3 789
失恋的感觉
失恋的感觉 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:32

    use \t instead of space.

    bw.write("\t"); 
    
    0 讨论(0)
  • 2020-12-18 18:34

    You can use \t to create a tab in a file.

    0 讨论(0)
  • 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

    0 讨论(0)
提交回复
热议问题