New GitHub issue #110745 from treyhunner:<br>

<hr>

<pre>
# Feature or enhancement

### Proposal:

Support for a `newline` argument was added to the `write_text` method in Python 3.10 (issue #67894).

I've been using this method but I've found a need for a `newline` method for `read_text` as well.

Here's the scenario where this would be handy (namely reading and writing the original newlines):

```python
from pathlib import Path

path = Path("my_file.txt")

contents = path.read_text(newline="")

contents = perform_some_operation_on(contents)

path.write_text(contents, newline="")
```


### Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

### Links to previous discussion of this feature:

I have not found any prior discussions or mentions of `newline` argument being supported for `read_text` outside of the initial pathlib API discussion (https://github.com/python/cpython/issues/64417#issuecomment-1093641934).
</pre>

<hr>

<a href="https://github.com/python/cpython/issues/110745">View on GitHub</a>
<p>Labels: type-feature</p>
<p>Assignee: </p>