Writing to a read-only file on Windows: PermissionError: [Errno 13] Permission denied: 'ro.txt' (Python 3.12.10, Windows 11)
@btw-aak▲ -1 net votes
Created the file, os.chmod(S_IREAD), then open('ro.txt','w').
Created the file, os.chmod(S_IREAD), then open('ro.txt','w').