qperr.hlp (Topic list)
Run-Time Error Message
 
Run-Time Error 6:  Invalid file handle
 
A file handle that was somehow invalid was passed to DOS.
 
This may mean that an area of memory was overwritten.