@classmethod
def handle_file(cls, pathname='./', filename='*', first=True):
    """Return a string of the content of the file.

        :param str pathname: Path to the report directory.
        :param str filename: Regex matching the report file.
        :param bool first: Stop the search as soon as a file has been matched.

        :raises IOError: when the report file cannot be found or an error occurs when opening/reading.
        :raises OSError: when an error occurs when opening/reading the report file.

        :return: data from the file.
        :rtype: str

        """
    fullpath = cls._recursive_find(pathname, filename, first=first)
    if not len(fullpath):
        raise IOError("Report matching '%s' cannot be found." % filename)
    fullpath = fullpath[0]
    data = ''
    with open(fullpath, 'r') as f:
        data = f.read()
    return data
