I could do that... i was thinking of something like this:

VB Code:
  1. if lngFileHandle <> 0 then
  2. 'Close Handle Here
  3. endif

However, what i really wanted to know, is what would happen if file handles were left unclosed. Also, in the error handler, what would happen if it generated an error closing the file handle? I dont like putting things in error handles that could generate errors (Would this happen?)

Hope that makes sense!

Thanks, Gav