def get_file_contents(filepath):
    """Returns the contents of a file as a string."""
    data = ""
    try:
        with open(filepath, "r") as open_file:
            data = open_file.read()
    except Exception as e:
        print(e)
    finally:
        return data