def _get_names(filename):
    """Return list of variable names."""
    with open(filename, 'rb') as f:
        for line in f:
            if line.decode().startswith('$Names='):
                return line.decode().split('=')[1].strip().split(';')
    raise Exception('No field names were found.')
