How to get the system's tab character

To get a system's end-of-line character, I use the following call:System.getProperty ("line.separator");Is there a similar method for obtaining the system's tab character?thanks,Andrew
[221 byte] By [outlander78a] at [2007-9-29 22:04:52]
# 1
Why not use "\n" for newline and "\t" for tab ?regards,Owen
omcgoverna at 2007-7-16 2:25:11 > top of Java-index,Archived Forums,Portability & Platform Independence [Archive]...
# 2

You do not necessarily want to use '\n' as a global newline. Better to make a static variable that is available in an interface that queries line.separator once:

static final public String EOL = System.getProperty("line.separator");

Regarding the tab character (and the newline as well), the special characters ('\t', \n', etc.) can be encoded for something other than UTF-8. The most likely example would be if you have to write a legacy interface for an EBCDIC mainframe or mini-computer. In this case, you can somewhat guarantee the correct output by:

Writer writer = new OutputStreamWriter(out, encoding);

- Saish

"My karma ran over your dogma." - Anon

Saisha at 2007-7-16 2:25:11 > top of Java-index,Archived Forums,Portability & Platform Independence [Archive]...