<div dir="ltr">Hi,<div><br></div><div>I'd really like to have methods `pathlib.Path.write` and `pathlib.Path.read`. Untested implementation:</div><div><br></div><div><div>def read(self, binary=False):</div><div>    with self.open('br' is binary else 'r') as file:</div><div>        return file.read()</div></div><div><br></div><div>def write(self, data. binary=False):</div><div>    with self.open('bw' is binary else 'w') as file:</div><div>        file.write(data)</div><div><br></div><div>This will be super useful to me. Many files actions are one liners like that, and avoiding putting the `with` clause in user code would be wonderful.</div><div><br></div><div>What do you think? </div><div><br></div><div><br></div><div>Thanks,</div><div>Ram.</div></div>