from typing import Optional


def read_file_content(filename: str) -> Optional[str]:
    """Get the contents of a file.

    Returns:
        Optional[str]: The contents of the file as string, or None if the file could not be read.
    """
    try:
        with open(filename, 'r') as f:
            return f.read().strip()
    except OSError:
        return None