San Metro wrote:but since Notepad is default editor I need to address the issue...
In which case, why not change your default editor?
The fact is that this is a Windows problem, not a Java or other OS one, because it's the only major OS that continues to use that ridiculous line terminator (which is actually a holdover from the days of line printers).
If you use methods like BufferedReader.readLine() in your Java programs, they will work correctly for any OS; and pretty much any utility you use in Linux, Unix or Apple OS/X will deal with Windows text files perfectly happily.
"Leadership is nature's way of removing morons from the productive flow" - Dogbert
Articles by Winston can be found here
Winston Gutkowski wrote: . . . a holdover from the days of line printers). . . .
I remember those infernal machines well. No, it was a TTY (=Teletype), which was even worse. The only good thing about it was the you had to push the key marked “Campbell Ritchie” to terminate a line. You then had to push the key marked LF to move onto the next line. At least if you wanted to read the printout you did
posted 5 years ago
thank you all for quick replies...
why we are using EJB - sorry it might look like excuse.....
this solution is implemented in approx. 2002 or bit later and currently using Java 5 / Websphere 6 which works good... (provide same output on Win/AIX),
I am participating to upgrade the Java 6 / Websphere 8;
I am trying to debug more on how EJB is getting the stream (byte [ ])..