def save_so_questions_to_json_files(self, fci_object):
        FCIConverter.to_local_json_file(self.json_files_path, fci_object)

        if self.connection is not None:
            FCIConverter.to_master_json_file(self.master_json_path, fci_object,
                                             self.connection)
            self.log_writer.write_info_log("Question saved to master server")
    def save_fci_objects_to_json_files(self, fci_object, file_name):
        FCIConverter.to_local_json_file(self.json_files_path, fci_object)

        if self.connection is not None:
            FCIConverter.to_master_json_file(self.master_json_path, fci_object,
                                             self.connection)
            self.log_writer.write_info_log(file_name +
                                           " saved to master server")
    def get_info_from_so_files(self):
        '''
        with open("python_title_answer.txt", 'r', encoding='UTF-8') as tsv:
        #with open("python_title_answer.txt", 'r', encoding='UTF-8') as f:
            for line in csv.reader(tsv, dialect="excel-tab"):
                try:
                    content = line[2]
                    code = line[3]
                    fci_object = FormattedCodeInterface()
                    fci_object.set_content(line[2])
                    fci_object.set_code(line[3])
                    print(line[2])
                    print(line[3])
                except Exception as e:
                    print(e)
        '''

        #file = open('python_title_answer.txt', 'r', encoding='UTF-8')
        #f = open('python_title_answer.txt', 'rb')
        f = open('python_title_answer.txt')
        '''
        content =''
        for line in file.readlines():
            content += line
        print(content)
        '''
        data = []
        for line in f:
            # Remove the new line at the end and then split the string based on
            # tabs. This creates a python list of the values.
            # el = line.encode('utf8')
            values = line.split('\t')
            content = values[2]
            # code = values[3].encode('UTF-8')
            code = values[3]
            print(code)
            fci_object = FormattedCodeInterface()
            fci_object.set_content(content)
            fci_object.set_code(code)
            FCIConverter.to_local_json_file("json_files", fci_object)
            # values = dl.strip().split('\t')
            # data.append([float(v) for v in values])
        print(data)
        f.close()  # close the file'''