Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python read file from same directory

f = open(os.path.join(sys.path[0], "test.html"), "r")
print(f.read())
f.close()
 
PREVIOUS NEXT
Tagged: #python #read #file #directory
ADD COMMENT
Topic
Name
8+3 =