DEV Community

Waylon Walker
Waylon Walker

Posted on • Originally published at

How I read Files in Python

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

Enter fullscreen mode Exit fullscreen mode

Top comments (0)