No, it doesn't remove new-lines. However, the way that
Java wrote out the new-lines may not match the new-line convention used by your editor.
You may find it useful to look at the file in a hex editor (I'd use hexl-mode in emacs, but you're probably not using emacs, so choose your own way of viewing a file in hex).
Perhaps post the hex dump of a file for a
small string here. Also, please tell us what your operating system is.
Also, how did you get the data
into your string? How do you know it actually contains new-lines?
[ September 04, 2007: Message edited by: Peter Chase ]