Hi Team,
I am trying to open a file that is available in the desktop folder with the below command but getting an error
that file is not present.
I don't have access to place the input file in the python folder to open the file.
code:
I am trying to open a file that is available in the desktop folder with the below command but getting an error
that file is not present.
I don't have access to place the input file in the python folder to open the file.
code:
a=r'C:\Users\Charan\Desktop\Python\sample.txt' b=open(a,'r')error:
Error:FileNotFoundError: [Errno 2] No such file or directory: 'C:\\Users\\Charan\\Desktop\\Python\\sample.txt'