Tweeted By @python_tip
#Python3 pathlib is awesome. You can join paths by '/' operator:
— Daily Python Tip (@python_tip) November 21, 2018
data_folder = Path("my_project/data/")
file_to_open = data_folder/"raw_data.txt"
Moreover, you can directly get a content of the file, for example,
print(file_to_open.read_text())https://t.co/MnvcCCtbHz