PermissionError: [Errno 13] in Python
When doing; …you’re trying to open a directory as a file, which may (and on most non UNIX file systems will) fail. Your other example though; should work well if you just have the permission on a.txt. You may want to use a raw (r-prefixed) string though, to make sure your path does not contain … Read more