0

Open statement is not working.. I have typed, open("asd.txt") But the file is not opening.

28th Nov 2017, 1:23 PM
Arafath
Arafath - avatar
2 ответов
+ 4
it may cause by many reasons. for example maybe it's not a file you want to access or the access is not required and also you didn't write the flag like "w" or "r"
30th Nov 2017, 4:06 PM
Vaastshine
Vaastshine - avatar
+ 5
with open("asd.txt", "r" as f: f.readlines()
30th Nov 2017, 4:17 PM
Vaastshine
Vaastshine - avatar