When I need to read contents from a plain text file in python I find the easiest way is to just use Pathlib
.
from pathlib import Path
Path('path_to_file').read_text()
When I need to read contents from a plain text file in python I find the easiest way is to just use Pathlib
.
from pathlib import Path
Path('path_to_file').read_text()
For further actions, you may consider blocking this person and/or reporting abuse
Dealing with servers, hardware, and infrastructure can take up your valuable time. Discover the benefits of Heroku, the PaaS of choice for developers since 2007.
Codic Labs -
Bhimashankar Patil -
Dmitry Romanoff -
Eti Ijeoma -
Top comments (0)