I'd like to close the file the "reader" opens, but I can't figure out how to
reference it.
example:
reader2=csv.rea der(file('blah. csv'))
if reader2 was a normal file, I would do "reader2.close( )" but that doesn't
work.
I won't show any of the more wacky attempts I made based on my limited
experience as they'd just reveal my total ignorance of this part of python.
I did look through the dictionary for the reader object but couldn't find
what I needed.
Thanks!
Paul
reference it.
example:
reader2=csv.rea der(file('blah. csv'))
if reader2 was a normal file, I would do "reader2.close( )" but that doesn't
work.
I won't show any of the more wacky attempts I made based on my limited
experience as they'd just reveal my total ignorance of this part of python.
I did look through the dictionary for the reader object but couldn't find
what I needed.
Thanks!
Paul
Comment