ive been cruising through learnthehardway but have gotten kinda stuck on
#16
even when i copy/paste his code I get this error:
PS C:\> python ex16cheat.py test1.txt
We're going to erase 'test1.txt'.
If you don't want that, hit CTRL-C (^C).
If you do want that, hit RETURN.
?
Opening the file...
Traceback (most recent call last):
File "ex16cheat.py", line 12, in <module>
target = open(filename, 'w')
IOError: [Errno 13] Permission denied: 'test1.txt'
seems like its saying i don't have permission to delete the file (that i just created)? any idea what I'm doing wrong here?