Remove unnecessary opening twice of file to get its tree
This is accomplished by implementing TQUtils::openFile which returns a pointer to the file only if it's valid
This is accomplished by implementing TQUtils::openFile which returns a pointer to the file only if it's valid