Path.read_text#

Path.read_text(encoding=None, errors=None)#

Open the file in text mode, read it, and close the file.