× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Neill Harper skrev:
Hi


Does anybody know of any problems with the new line functionality when
writing a text file with a buffered writer.


Using the code below when I open the file with notepad it doesn't have the
new line in it. i.e. the text is all one line like this:

Notepad doesn't like Ctrl-J's on its own (which is what the default is under Unix, which the Java environment behaves like under OS/400), but only Ctrl-M+Ctrl-J's.

You can use wordpad to see them with, or any sufficiently advanced editor on Windows. Personally I use vim, but that is just a matter of taste and background.

/Thorbjørn

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 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.