I'm running this code in Sublime Text 3 with python 3.6 installed. The Error I get:
Traceback (most recent call last):
File "C:\SublimeCode\Creating list from txt.pyw", line 3, in <module>
List = open('C:\SublimeCode\Employee\EmployeeList.txt').readlines()
FileNotFoundError: [Errno 2] No such file or directory:
'C:\\SublimeCode\\Employee\\EmployeeList.txt'
I have all these folders as listed in the correct places but yet I get the error. Code:
List = open('C:\SublimeCode\Employee\EmployeeList.txt').readlines()
print(List)