On Fri, 8 Apr 2022 09:02:53 GMT, Prasanta Sadhukhan <psadhukhan at openjdk.org> wrote: > ok, so you are telling out.write(array, last, counter - last - 1) will write till \r\n and out.write(endOfLine) will write \r\n, is it? Yes. ------------- PR: https://git.openjdk.java.net/jdk/pull/8122