How To Handle Plain Text Files in Python 3 | DigitalOcean

PHOTO EMBED

Fri Feb 17 2023 12:05:13 GMT+0000 (Coordinated Universal Time)

Saved by @hankfc

path = '/home/sammy/days.txt'
days_file = open(path, 'r')
days = days_file.read()
content_copyCOPY

https://www.digitalocean.com/community/tutorials/how-to-handle-plain-text-files-in-python-3