Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env python
- import feedparser
- import sys, os
- filename = "/tmp/data.txt"
- TEST = open(filename, "a")
- print(TEST.read())
- --------------------------------
- godzilla:~/rssfeed# ./test.py
- Traceback (most recent call last):
- File "./test.py", line 9, in <module>
- print(TEST.read())
- IOError: [Errno 9] Bad file descriptor
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement