from pathlib import Path


def read(given_path):
    """Returns the striped content of a file."""
    given_path = Path(given_path)
    relative_path = Path(__file__).parent / given_path
    used_path = relative_path if relative_path.is_file() else given_path

    if not used_path.is_file():
        raise FileNotFoundError(
            f"could not find any of {relative_path} or {given_path}"
        )

    with open(used_path) as stream:
        return stream.read().strip()