How to open a file which is in some other location in the drive should I provide the path name? | Sololearn: Learn to code for FREE!
Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок
0

How to open a file which is in some other location in the drive should I provide the path name?

file = open(path,'r') ?

9th Aug 2016, 2:35 PM
Rahul Shetty
Rahul Shetty - avatar
3 ответов
+ 2
yes. you must enter the path location/name in parenthesis.
13th Aug 2016, 5:22 PM
Nnamdi Erondu
Nnamdi Erondu - avatar
+ 1
How do I call the path of another file?
22nd Aug 2016, 9:41 AM
shanthini R
0
Yes and must giving a absolute location
23rd Aug 2016, 11:56 AM
Wilfried Willend
Wilfried Willend - avatar