Re: file.readlines() and IOError exceptions

2006-07-12 Thread Fredrik Lundh
Astan Chee wrote: > now the file Im trying to read has recently had alot of read/writes from > other users/threads/etc, so every now and again I get a > IOError: [Errno 9] Bad file descriptor > I know this has something to do with not being able to read while some > filehandles are open (or is

file.readlines() and IOError exceptions

2006-07-11 Thread Astan Chee
Hi everyone, I currently have a problem with reading one of my files. Normally I'd read files like so: overf = 'C:\\overf' my_overf = open(overf,'r') contents = my_overf.readlines() my_overf.close() now the file Im trying to read has recently had alot of read/writes from other users/threads/etc,