def create_or_update_file(file_path: str, file_content: str='',
    file_content_encoding: str='utf-8') ->None:
    """Create or update file.

    :param file_path: path to the file.
    :param file_content: file content.
    :param file_content_encoding: file content encoding e.g. `latin-1`.
    """
    with open(file_path, 'wb+') as file:
        file.write(file_content.encode(file_content_encoding))
