Skip to content

Commit 0e09521

Browse files
committed
Clarify when to use system dependent line separators
1 parent 909b87e commit 0e09521

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

concepts/strings/about.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ To put a newline character in a string, use the `\n` escape code (`\r\n` on Wind
2929
```
3030

3131
For code that should work on varying operating systems Java offers [`System.lineSeparator()`][system-line-separator], which returns the system-dependent line separator string.
32+
This is important if you're writing to files that will be read on the same system.
3233

3334
To comfortable work with texts that contain a lot of newlines you can use [Text Blocks][text-blocks].
3435
These multi-line strings are delimited by triple double quote (`"`) characters.

0 commit comments

Comments
 (0)