@staticmethod
def _read_file(file_path):
    """
        Reads a file and returns the content as a string.

        :param str file_path: The path to the file to read.
        :return str: Content of the file.
        """
    buffer_size = 4096
    file_content = bytes()
    with open(file_path, 'rb') as binary_file:
        while True:
            data = binary_file.read(buffer_size)
            if data:
                file_content += data
            else:
                break
    return file_content
