Answers for "access file from another directory python"

2

open file in python directory

path = 'C:\Users\Username\Path\To\File'
file=open(path, "r")
Posted by: Guest on May-13-2020
0

how to access a txt file through os library in python

my_file_handle=open("folder/test.txt")
my_file_handle.read()
Posted by: Guest on September-22-2020

Code answers related to "access file from another directory python"

Python Answers by Framework

Browse Popular Code Answers by Language