---
title: "How I read Files in Python"
description: "When I need to read contents from a plain text file in python I find the easiest way is to just use ."
date: 2022-03-20
published: false
tags:
  - python
template: til
---


When I need to read contents from a plain text file in python I find the
easiest way is to just use `Pathlib`.

``` python
from pathlib import Path

Path('path_to_file').read_text()
```
