def is_xds_file(filename):
    """Check to see if a file looks like XDS_ASCII format."""

    first_token = open(filename, "r").readline().split()[0]

    if first_token == "!FORMAT=XDS_ASCII":
        return True

    return False