Hi Wolfgang, > Try fgetattrlist to get the filename from the file descriptor. Thank you. This is not what my question is about. I'm asking *which* filehandle should be used. "cur_file" does not work - see first email. Regards, Igor