sysopen(FH, "/$directories[$d]/$files[$i]", 'O_RDONLY');