Good News Everybody!
The new search engine is LIVE!
Please report any problems to david (at) midrange.com.
|
Neal:
What Thorbjørn wrote:
The println methods are located in the PrintStream/PrintWriter wrappers (written from memory). If you need that functionality you pass the stream as the argument to the PrintStream constructor and you have it.
lead me to ask: When the line oriented file output of Java on a System i is only for consumption by some PC program could the System property line.separator be changed to \r\n and get the result wanted with println() methods?
Something like:
String originalLineSeparator = System.setProperty( "line.separator", "\r\n" );
Should work. See javadoc for PrintWriter.println(), they specifically state that the "line.separator" property is used to terminate the line.
This mailing list archive is Copyright 1997-2026 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.