SimpleDateFormat formatter = new SimpleDateFormat(\"ddMMyyyy_HHmmSS\"); String strCurrDate = formatter.format(new java.util.Date()); String strfileNm = \"Cust_Adv
use \t instead of space.
bw.write("\t");
You can use \t to create a tab in a file.
\t
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