title: Function problems program
body: <p>I wrote a program that makes a list <br>
  But when the content of the imported files is high <br>
  The program is off(<strong>crash</strong>) <br>
  This is the code I wrote <br></p>
  
  <hr>
  
  <p>In this photo, a file with low content is used <br></p>
  
  <h2><a href="https://i.stack.imgur.com/ozJIg.png" rel="nofollow noreferrer">enter image description here</a> <br></h2>
  
  <p>This photo uses a file with a lot of content  <br></p>
  
  <h2><a href="https://i.stack.imgur.com/AXtjD.png" rel="nofollow noreferrer">enter image description here</a> <br></h2>
  
  <p><strong><a href="https://github.com/OKHTAY2001/zz2f/" rel="nofollow noreferrer">file zip</a></strong></p>
  
  <pre><code>def btn_start():
      try:
          if open_file1_text and open_file2_text :
              file_1 = open(open_file1_text.get(), 'r')
              file_2 = open(open_file2_text.get(), 'r')
              lines_1 = file_1.readlines()
              lines_2 = file_2.readlines()
              global text
              text = ("")
              demo_text_box.delete(1.0,'end')
              demo_text_box_a.delete(1.0,'end')
              demo_text_box_a.insert(INSERT,start_text_demo )
              for pline in lines_2:
                  for uline in lines_1:
                      demo_text_box.insert(INSERT,uline.rstrip('\n') + separator_text_.get() + pline)
                      text += (uline.rstrip('\n') + separator_text_.get() + pline)
  
              file_1.close()
              file_2.close()
      except FileNotFoundError :
          demo_text_box.delete(1.0,'end')
          demo_text_box_a.delete(1.0,'end')
          demo_text_box_a.insert(INSERT,File_Not_Found_Error )
  </code></pre>