'Required:
nothing
Returns:
original file will be changed
Logic:'

def group_styles(self):

    self.__initiate_values()
    read_obj = open(self.__file, 'r')
    self.__write_obj = open(self.__write_to, 'w')
    line_to_read = 1
    while line_to_read:
        line_to_read = read_obj.readline()
        line = line_to_read
        self.__token_info = line[:16]
        self.__get_style_name(line)
        action = self.__state_dict.get(self.__state)
        action(line)
    read_obj.close()
    self.__write_obj.close()
    copy_obj = copy.Copy(bug_handler=self.__bug_handler)
    if self.__copy:
        copy_obj.copy_file(self.__write_to, 'group_styles.data')
    copy_obj.rename(self.__write_to, self.__file)
    os.remove(self.__write_to)
