Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python path addition

from pathlib import Path

data_folder = Path("source_data/text_files/")

file_to_open = data_folder / "raw_data.txt"

f = open(file_to_open)

print(f.read())
Source by geek-university.com #
 
PREVIOUS NEXT
Tagged: #python #path #addition
ADD COMMENT
Topic
Name
2+1 =