1 2 3
out_file = open("test.txt", "wt") out_file.write("This Text is going to out file\nLook at it and see!") out_file.close()
1 2 3 4
Traceback (most recent call last): Line 1, in <module> out_file = open("test.txt", "wt") IOError: [Errno 13] Permission denied: 'test.txt'