Hi Igor, > But which file handle corresponds to the file to be opened in editor? Try fgetattrlist to get the filename from the file descriptor. Happy weaving, Wolfgang