0
I cant open file .If I run this code open('abc.txt') ,output error " such no file ..." .But I put the file abc in same folder.
tell me please
3 ответов
+ 3
e.g. file = open ('abc.txt', 'r')
print (file.read ())
+ 2
Check the file name again. are you sure it is a txt file ?
+ 2
set the path include the txt file. eg. c:/temp/abc.txt and asvwhat you want read or write.